diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-02-20 01:09:00 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-02-20 01:09:00 +0000 |
commit | 2bc288bb0c8e996fb08cb6603b578c77cc01f803 (patch) | |
tree | fbdc1fac5fe7433d85909cd092a9a2914fc4e763 | |
parent | 8b9607cff10018c48994e5bc68be247ce9132f7b (diff) | |
download | php-git-2bc288bb0c8e996fb08cb6603b578c77cc01f803.tar.gz |
Added missing safe_mode & open_basedir checks.
-rw-r--r-- | ext/dio/dio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dio/dio.c b/ext/dio/dio.c index e0bc400b4c..fcd171c1c8 100644 --- a/ext/dio/dio.c +++ b/ext/dio/dio.c @@ -159,6 +159,10 @@ PHP_FUNCTION(dio_open) return; } + if (php_check_open_basedir(file_name TSRMLS_CC) || (PG(safe_mode) && !php_checkuid(file_name, "wb+", CHECKUID_CHECK_MODE_PARAM))) { + RETURN_FALSE; + } + if (ZEND_NUM_ARGS() == 3) { fd = open(file_name, flags, mode); } else { |