From e3797ab76a2d3e74d02900cff97db6957294c0e1 Mon Sep 17 00:00:00 2001 From: foobar Date: Sat, 13 Jul 2002 04:45:21 +0000 Subject: [PATCH] Fixed bug: #16638. --- ext/standard/file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.40.0