From: Rasmus Lerdorf Date: Sun, 12 May 2002 15:59:42 +0000 (+0000) Subject: Change safe-mode rule for rmdir() to match unlink() - allow is target X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93af4bdfb7f7c8386a0121e8ff7f4a4372436e70;p=php 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) --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 702fdcb8c7..3b84056ea7 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -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; }