Make sure rcube_utils::resolve_url() does not add port 80 to the url

...which might have happened with reverse proxies
pull/183/merge
Aleksander Machniak 8 years ago
parent 7c001260fa
commit 27a621818d

@ -1118,7 +1118,7 @@ class rcube_utils
} }
$prefix = $schema . '://' . preg_replace('/:\d+$/', '', $_SERVER['HTTP_HOST']); $prefix = $schema . '://' . preg_replace('/:\d+$/', '', $_SERVER['HTTP_HOST']);
if ($_SERVER['SERVER_PORT'] != $default_port) { if ($_SERVER['SERVER_PORT'] != $default_port && $_SERVER['SERVER_PORT'] != 80) {
$prefix .= ':' . $_SERVER['SERVER_PORT']; $prefix .= ':' . $_SERVER['SERVER_PORT'];
} }

Loading…
Cancel
Save