From 9381bcaab38597ee8bcd6a0f49a472b7fd0a7605 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Fri, 15 Oct 2021 17:26:29 +0800 Subject: [PATCH] try fix & in base_path in FC --- platform/AliyunFC.php | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/AliyunFC.php b/platform/AliyunFC.php index 02dba5b..09c5f49 100644 --- a/platform/AliyunFC.php +++ b/platform/AliyunFC.php @@ -46,6 +46,7 @@ function GetPathSetting($event, $context) if ($path=='/'||$path=='') { $_SERVER['base_path'] = $tmp; } else { + $tmp = str_replace('&', '&', $tmp); while ($tmp!=urldecode($tmp)) $tmp = urldecode($tmp); $tmp1 = urldecode($event['path']); while ($tmp1!=urldecode($tmp1)) $tmp1 = urldecode($tmp1);