diff --git a/route.php b/route.php index ab66c87..d8ca759 100644 --- a/route.php +++ b/route.php @@ -31,11 +31,11 @@ class route return $this->baseURL; if (!isset ($_SERVER["SERVER_PORT"])) - $_SERVER["SERVER_PORT"] = 80; + $_SERVER["SERVER_PORT"] = "80"; $port = ":".$_SERVER["SERVER_PORT"]; - if (!isset ($_SERVER["HTTPS"]) && $_SERVER["SERVER_PORT"] === 80) + if (!isset ($_SERVER["HTTPS"]) && $_SERVER["SERVER_PORT"] === "80") $port = ""; - if (isset ($_SERVER["HTTPS"]) && $_SERVER["SERVER_PORT"] === 443) + if (isset ($_SERVER["HTTPS"]) && $_SERVER["SERVER_PORT"] === "443") $port = ""; if (isset ($_SERVER["SCRIPT_NAME"])) @@ -84,11 +84,11 @@ class route else $url = "http:"; if (!isset ($_SERVER["SERVER_PORT"])) - $_SERVER["SERVER_PORT"] = 80; + $_SERVER["SERVER_PORT"] = "80"; $port = ":".$_SERVER["SERVER_PORT"]; - if (!isset ($_SERVER["HTTPS"]) && $_SERVER["SERVER_PORT"] === 80) + if (!isset ($_SERVER["HTTPS"]) && $_SERVER["SERVER_PORT"] === "80") $port = ""; - if (isset ($_SERVER["HTTPS"]) && $_SERVER["SERVER_PORT"] === 443) + if (isset ($_SERVER["HTTPS"]) && $_SERVER["SERVER_PORT"] === "443") $port = ""; if (isset ($_SERVER["SERVER_NAME"]))