This commit is contained in:
foobar 2002-07-13 04:45:21 +00:00
parent 6a42e635ca
commit e3797ab76a

View File

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