diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-06-21 22:53:52 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-06-21 22:53:52 +0000 |
commit | a3bd8bcd7b87e3c00e2e9a193dfbbf62125d6baa (patch) | |
tree | 2d27e62209d3ba74e1dbdee726d4403ac51e4384 /ext/standard/iptc.c | |
parent | 8f2686df358e10bef972a6bdd2c6592b085ea9e7 (diff) | |
download | php-git-a3bd8bcd7b87e3c00e2e9a193dfbbf62125d6baa.tar.gz |
Added missing safe_mode check.
Diffstat (limited to 'ext/standard/iptc.c')
-rw-r--r-- | ext/standard/iptc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/iptc.c b/ext/standard/iptc.c index 5bccdb3795..ac1c6edfa0 100644 --- a/ext/standard/iptc.c +++ b/ext/standard/iptc.c @@ -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; } |