diff options
author | foobar <sniper@php.net> | 2005-11-02 21:26:25 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2005-11-02 21:26:25 +0000 |
commit | edc87ef840ccffe56eec2de80c9c353673cc6ceb (patch) | |
tree | d27d946907af27b805e1e91f0a091bf17b636cab /ext/gd/php_gd.h | |
parent | 8098790208e16c3a0595d73688d1ba65ee95a7ed (diff) | |
download | php-git-edc87ef840ccffe56eec2de80c9c353673cc6ceb.tar.gz |
MFH: Fixed bad usage of php_checkuid()
Diffstat (limited to 'ext/gd/php_gd.h')
-rw-r--r-- | ext/gd/php_gd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h index 80781691de..9fa8fb6da0 100644 --- a/ext/gd/php_gd.h +++ b/ext/gd/php_gd.h @@ -33,7 +33,7 @@ /* open_basedir and safe_mode checks */ #define PHP_GD_CHECK_OPEN_BASEDIR(filename, errormsg) \ if (!filename || php_check_open_basedir(filename TSRMLS_CC) || \ - (PG(safe_mode) && !php_checkuid(filename, "rb+", CHECKUID_CHECK_FILE_AND_DIR)) \ + (PG(safe_mode) && !php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR)) \ ) { \ php_error_docref(NULL TSRMLS_CC, E_WARNING, errormsg); \ RETURN_FALSE; \ |