fix: fix: FC base_path
parent
936764d7b6
commit
ded802f448
|
@ -38,10 +38,8 @@ function GetPathSetting($event, $context)
|
||||||
$_SERVER['region'] = $context['region'];
|
$_SERVER['region'] = $context['region'];
|
||||||
$_SERVER['service_name'] = $context['service']['name'];
|
$_SERVER['service_name'] = $context['service']['name'];
|
||||||
$_SERVER['function_name'] = $context['function']['name'];
|
$_SERVER['function_name'] = $context['function']['name'];
|
||||||
|
$path = $event['path'];
|
||||||
$_SERVER['base_path'] = $event['requestURI'];
|
$_SERVER['base_path'] = substr($event['requestURI'], 0, -strlen($path)+1);
|
||||||
$path = $event['path'];
|
|
||||||
//$path = spurlencode($path, '/');
|
|
||||||
|
|
||||||
if (substr($path,-1)=='/') $path=substr($path,0,-1);
|
if (substr($path,-1)=='/') $path=substr($path,0,-1);
|
||||||
$_SERVER['is_guestup_path'] = is_guestup_path($path);
|
$_SERVER['is_guestup_path'] = is_guestup_path($path);
|
||||||
|
|
Loading…
Reference in New Issue