From c5d06308b1be0aec9537ae5976a7d248dc1db435 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 29 Sep 2009 23:36:30 +0000 Subject: [PATCH] - Fix build --- ext/standard/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.40.0