From 22fb9dd669850c253aae092d24c2f2ee613df8a6 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 25 Oct 2021 10:57:24 +0800 Subject: [PATCH] try fix + in FG --- platform/HuaweiFG_env.php | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/HuaweiFG_env.php b/platform/HuaweiFG_env.php index 45387c4..d65ae59 100644 --- a/platform/HuaweiFG_env.php +++ b/platform/HuaweiFG_env.php @@ -49,6 +49,7 @@ function GetPathSetting($event, $context) $host_name = $event['headers']['host']; $_SERVER['HTTP_HOST'] = $host_name; $path = path_format($event['pathParameters'][''].'/'); + $path = str_replace('+', '%2B', $path); $_SERVER['base_path'] = path_format($event['path'].'/'); if ( $_SERVER['base_path'] == $path ) { $_SERVER['base_path'] = '/';