From: Stanislav Malyshev Date: Thu, 27 Jul 2000 13:47:03 +0000 (+0000) Subject: Fix safe mode handling by touch X-Git-Tag: PRE_FILE_COMPILE_API_CHANGE~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f24c8c6f4bae54af4bc81924323388a332ff7575;p=php Fix safe mode handling by touch --- diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 2de03fb9a7..17db4855d5 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -396,7 +396,7 @@ PHP_FUNCTION(touch) } convert_to_string_ex(filename); - if (PG(safe_mode) &&(!php_checkuid((*filename)->value.str.val, NULL, 1))) { + if (PG(safe_mode) &&(!php_checkuid((*filename)->value.str.val, NULL, 2))) { if (newtime) efree(newtime); RETURN_FALSE; }