From: foobar Date: Sat, 13 Jul 2002 04:45:21 +0000 (+0000) Subject: Fixed bug: #16638. X-Git-Tag: dev~325 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3797ab76a2d3e74d02900cff97db6957294c0e1;p=php Fixed bug: #16638. --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 7fd6181e87..47b4cac885 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1496,7 +1496,6 @@ PHPAPI PHP_FUNCTION(fseek) /* }}} */ /* {{{ proto bool mkdir(string pathname[, int mode]) Create a directory */ - PHP_FUNCTION(mkdir) { int dir_len, ret; @@ -1507,7 +1506,7 @@ PHP_FUNCTION(mkdir) return; } - if (PG(safe_mode) &&(!php_checkuid(dir, NULL, CHECKUID_ALLOW_ONLY_DIR))) { + if (PG(safe_mode) && (!php_checkuid(dir, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { RETURN_FALSE; }