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.
2 parents 936f258 + 0f6b986 commit a21092cCopy full SHA for a21092c
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
@@ -379,6 +380,8 @@ protected function _loadXml($xmlFile)
379
380
381
382
/**
383
+ * Render page
384
+ *
385
* @param string $template
386
* @return string
387
*/
0 commit comments