]> granicus.if.org Git - php/commitdiff
Fix safe mode handling by touch
authorStanislav Malyshev <stas@php.net>
Thu, 27 Jul 2000 13:47:03 +0000 (13:47 +0000)
committerStanislav Malyshev <stas@php.net>
Thu, 27 Jul 2000 13:47:03 +0000 (13:47 +0000)
ext/standard/filestat.c

index 2de03fb9a7e2c4cb630bfb3d74836200973ab387..17db4855d5da99df2d6a9dde441374a094104fc4 100644 (file)
@@ -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;
        }