We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f57a30 commit ef426a7Copy full SHA for ef426a7
pub/errors/processor.php
@@ -268,10 +268,11 @@ public function getHostUrl()
268
$isSecure = (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] != 'off');
269
$url = ($isSecure ? 'https://' : 'http://') . $host;
270
271
- if (!empty($_SERVER['SERVER_PORT']) && !in_array($_SERVER['SERVER_PORT'], [80, 443])
+ $port = explode(':', $host);
272
+ if (isset($port[1]) && !in_array($port[1], [80, 443])
273
&& !preg_match('/.*?\:[0-9]+$/', $url)
274
) {
- $url .= ':' . $_SERVER['SERVER_PORT'];
275
+ $url .= ':' . $port[1];
276
}
277
return $url;
278
0 commit comments