mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
MFH: Fixed bad usage of php_checkuid()
This commit is contained in:
+1
-1
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user