Skip to content

Commit 67ce64c

Browse files
author
Oleksii Korshenko
authored
MAGETWO-71955: fix ports number #10668
2 parents b2f688c + 9fef517 commit 67ce64c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pub/errors/processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public function getHostUrl()
268268
$isSecure = (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] != 'off');
269269
$url = ($isSecure ? 'https://' : 'http://') . $host;
270270

271-
if (!empty($_SERVER['SERVER_PORT']) && !in_array($_SERVER['SERVER_PORT'], [80, 433])
271+
if (!empty($_SERVER['SERVER_PORT']) && !in_array($_SERVER['SERVER_PORT'], [80, 443])
272272
&& !preg_match('/.*?\:[0-9]+$/', $url)
273273
) {
274274
$url .= ':' . $_SERVER['SERVER_PORT'];

0 commit comments

Comments
 (0)