mirror of
https://github.com/php/php-src.git
synced 2026-04-13 11:02:55 +02:00
Fix for #11570
This commit is contained in:
@@ -281,6 +281,9 @@ PHP_FUNCTION(chdir)
|
||||
}
|
||||
convert_to_string_ex(arg);
|
||||
|
||||
if (PG(safe_mode) && !php_checkuid((*arg)->value.str.val, NULL, CHECKUID_ALLOW_ONLY_DIR)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
ret = VCWD_CHDIR((*arg)->value.str.val);
|
||||
|
||||
if (ret != 0) {
|
||||
|
||||
Reference in New Issue
Block a user