diff --git a/corp/api/Auth.php b/corp/api/Auth.php index 9243c91..7642281 100755 --- a/corp/api/Auth.php +++ b/corp/api/Auth.php @@ -48,7 +48,7 @@ function curPageURL() } $pageURL .= "://"; - if ($_SERVER["SERVER_PORT"] != "80") + if ($_SERVER["SERVER_PORT"] != "80" && ($pageURL == "https://" && $_SERVER["SERVER_PORT"] != "443")) { $pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"]; } @@ -102,4 +102,4 @@ static function check($res) exit("Failed: " . json_encode($res)); } } -} \ No newline at end of file +}