mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Fixed bug: #16638.
This commit is contained in:
parent
6a42e635ca
commit
e3797ab76a
@ -1496,7 +1496,6 @@ PHPAPI PHP_FUNCTION(fseek)
|
|||||||
/* }}} */
|
/* }}} */
|
||||||
/* {{{ proto bool mkdir(string pathname[, int mode])
|
/* {{{ proto bool mkdir(string pathname[, int mode])
|
||||||
Create a directory */
|
Create a directory */
|
||||||
|
|
||||||
PHP_FUNCTION(mkdir)
|
PHP_FUNCTION(mkdir)
|
||||||
{
|
{
|
||||||
int dir_len, ret;
|
int dir_len, ret;
|
||||||
@ -1507,7 +1506,7 @@ PHP_FUNCTION(mkdir)
|
|||||||
return;
|
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;
|
RETURN_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user