From: Felipe Pena Date: Tue, 29 Sep 2009 23:36:30 +0000 (+0000) Subject: - Fix build X-Git-Tag: php-5.2.12RC1~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5d06308b1be0aec9537ae5976a7d248dc1db435;p=php - Fix build --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 9dcb4ca01d..946af1ba1f 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -838,7 +838,7 @@ PHP_FUNCTION(tempnam) convert_to_string_ex(arg1); convert_to_string_ex(arg2); - if (PG(safe_mode) &&(!php_checkuid(dir, NULL, CHECKUID_ALLOW_ONLY_DIR))) { + if (PG(safe_mode) &&(!php_checkuid(Z_STRVAL_PP(arg1), NULL, CHECKUID_ALLOW_ONLY_DIR))) { RETURN_FALSE; }