mirror of
https://github.com/php/php-src.git
synced 2024-11-30 21:35:36 +08:00
Change safe-mode rule for rmdir() to match unlink() - allow is target
is opened by caller or in a directory owned by caller @ Minor fix to rmdir() under safe-mode (Rasmus)
This commit is contained in:
parent
2931bb640d
commit
93af4bdfb7
@ -1533,7 +1533,7 @@ PHP_FUNCTION(rmdir)
|
||||
|
||||
convert_to_string_ex(arg1);
|
||||
|
||||
if (PG(safe_mode) &&(!php_checkuid(Z_STRVAL_PP(arg1), NULL, CHECKUID_ALLOW_FILE_NOT_EXISTS))) {
|
||||
if (PG(safe_mode) &&(!php_checkuid(Z_STRVAL_PP(arg1), NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user