diff --git a/src/Support/Url.php b/src/Support/Url.php index 7c3b911cd..49a8b6a19 100644 --- a/src/Support/Url.php +++ b/src/Support/Url.php @@ -34,7 +34,7 @@ public static function current() { $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' - || $_SERVER['SERVER_PORT'] === 443) ? 'https://' : 'http://'; + || (int)$_SERVER['SERVER_PORT'] === 443) ? 'https://' : 'http://'; return $protocol.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; }