修复回调token不对的问题:区分路径字符大小写
This commit is contained in:
parent
a3374a79da
commit
663ea7dd4d
1 changed files with 3 additions and 3 deletions
|
@ -54,11 +54,11 @@ $site_path = substr($scriptpath, 0, strrpos($scriptpath, '/'));
|
|||
$site_url = HTTP_PROTOCOL . '://' . $site_domain;
|
||||
|
||||
if (isset($_SERVER['PATH_INFO'])) {
|
||||
$path_info = strtolower(trim(str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['PATH_INFO']), '/'));
|
||||
$path_info = trim(str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['PATH_INFO']), '/');
|
||||
} else if ($_SERVER['REQUEST_URI']) {
|
||||
$request_uri = strtolower(trim($_SERVER['REQUEST_URI']));
|
||||
$request_uri = trim($_SERVER['REQUEST_URI']);
|
||||
$path_info = explode('?', $request_uri)[0];
|
||||
$path_info = strtolower(trim(str_replace($site_path, '', $path_info)));
|
||||
$path_info = trim(str_replace($site_path, '', $path_info));
|
||||
}
|
||||
|
||||
define('SITE_DOMAIN', $site_domain);
|
||||
|
|
Loading…
Add table
Reference in a new issue