1
0
mirror of https://github.com/php/php-src.git synced 2026-04-13 11:02:55 +02:00
This commit is contained in:
Rasmus Lerdorf
2001-06-20 14:47:26 +00:00
parent d0fba81668
commit 94897efc36

View File

@@ -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) {