1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 22:41:20 +02:00

Fix safe mode handling by touch

This commit is contained in:
Stanislav Malyshev
2000-07-27 13:47:03 +00:00
parent 9aa854dc6e
commit f24c8c6f4b

View 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;
}