]> granicus.if.org Git - php/commitdiff
- Fix bad usage of php_checkuid()
authorfoobar <sniper@php.net>
Wed, 2 Nov 2005 21:26:08 +0000 (21:26 +0000)
committerfoobar <sniper@php.net>
Wed, 2 Nov 2005 21:26:08 +0000 (21:26 +0000)
ext/gd/php_gd.h

index d0c326f63e7a1a6c1c22e5e5f49d9bf0163ed153..140764c4cd600a19b2649261c56112a89d147029 100644 (file)
@@ -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;                                                                   \