try fix & in base_path in FC

pull/610/head
qkqpttgf 2021-10-15 17:26:29 +08:00 committed by GitHub
parent bab19ae9d3
commit 9381bcaab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ function GetPathSetting($event, $context)
if ($path=='/'||$path=='') { if ($path=='/'||$path=='') {
$_SERVER['base_path'] = $tmp; $_SERVER['base_path'] = $tmp;
} else { } else {
$tmp = str_replace('&', '&', $tmp);
while ($tmp!=urldecode($tmp)) $tmp = urldecode($tmp); while ($tmp!=urldecode($tmp)) $tmp = urldecode($tmp);
$tmp1 = urldecode($event['path']); $tmp1 = urldecode($event['path']);
while ($tmp1!=urldecode($tmp1)) $tmp1 = urldecode($tmp1); while ($tmp1!=urldecode($tmp1)) $tmp1 = urldecode($tmp1);