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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user