From acddcce65ed0bdfa7733e83f716a732f9b1ce81f Mon Sep 17 00:00:00 2001 From: Taku Date: Sat, 26 Aug 2017 11:32:08 +0900 Subject: [PATCH] fix ports number --- pub/errors/processor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pub/errors/processor.php b/pub/errors/processor.php index 5ca9d826e2e03..0b9fefc8b441c 100644 --- a/pub/errors/processor.php +++ b/pub/errors/processor.php @@ -268,7 +268,7 @@ public function getHostUrl() $isSecure = (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] != 'off'); $url = ($isSecure ? 'https://' : 'http://') . $host; - if (!empty($_SERVER['SERVER_PORT']) && !in_array($_SERVER['SERVER_PORT'], [80, 433]) + if (!empty($_SERVER['SERVER_PORT']) && !in_array($_SERVER['SERVER_PORT'], [80, 443]) && !preg_match('/.*?\:[0-9]+$/', $url) ) { $url .= ':' . $_SERVER['SERVER_PORT'];