diff options
Diffstat (limited to 'ext/gd/php_gd.h')
-rw-r--r-- | ext/gd/php_gd.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h index 10a18fbf6e..7fbedbe4e0 100644 --- a/ext/gd/php_gd.h +++ b/ext/gd/php_gd.h @@ -33,12 +33,10 @@ #if HAVE_LIBGD /* 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, NULL, CHECKUID_CHECK_FILE_AND_DIR)) \ - ) { \ - php_error_docref(NULL TSRMLS_CC, E_WARNING, errormsg); \ - RETURN_FALSE; \ +#define PHP_GD_CHECK_OPEN_BASEDIR(filename, errormsg) \ + if (!filename || php_check_open_basedir(filename TSRMLS_CC)) { \ + php_error_docref(NULL TSRMLS_CC, E_WARNING, errormsg); \ + RETURN_FALSE; \ } #define PHP_GDIMG_TYPE_GIF 1 |