mirror of
https://github.com/php/php-src.git
synced 2025-01-20 10:43:40 +08:00
Added missing safe_mode check.
This commit is contained in:
parent
8f2686df35
commit
a3bd8bcd7b
@ -208,6 +208,10 @@ PHP_FUNCTION(iptcembed)
|
||||
break;
|
||||
}
|
||||
|
||||
if (PG(safe_mode) && (!php_checkuid(Z_STRVAL_PP(jpeg_file), NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (php_check_open_basedir(Z_STRVAL_PP(jpeg_file) TSRMLS_CC)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user