Added missing safe_mode check.

This commit is contained in:
Ilia Alshanetsky 2004-06-21 22:53:52 +00:00
parent 8f2686df35
commit a3bd8bcd7b

View File

@ -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;
}