* finish task #7986.

This commit is contained in:
z
2020-09-24 13:24:46 +08:00
parent be17c9d494
commit 2a6e021191
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1672,6 +1672,7 @@ EOD;
public static function getSysURL()
{
$httpType = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? 'https' : 'http';
if(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) and strpos($_SERVER['HTTP_X_FORWARDED_PROTO']) == 'https') $httpType = 'https';
$httpHost = $_SERVER['HTTP_HOST'];
return "$httpType://$httpHost";
}