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:
Rasmus Lerdorf 2002-05-12 15:59:42 +00:00
parent 2931bb640d
commit 93af4bdfb7

View File

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