fix https default port check

This commit is contained in:
Gordon Franke 2011-08-03 09:14:32 +02:00
parent e136718ed6
commit 86f888f91c

View File

@ -74,6 +74,7 @@ class RedirectController extends ContainerAware
if (null === $scheme) { if (null === $scheme) {
$scheme = $request->getScheme(); $scheme = $request->getScheme();
} }
$qs = $request->getQueryString(); $qs = $request->getQueryString();
if ($qs) { if ($qs) {
$qs = '?'.$qs; $qs = '?'.$qs;
@ -82,7 +83,7 @@ class RedirectController extends ContainerAware
$port = ''; $port = '';
if ('http' === $scheme && 80 != $httpPort) { if ('http' === $scheme && 80 != $httpPort) {
$port = ':'.$httpPort; $port = ':'.$httpPort;
} elseif ('https' === $scheme && 443 != $httpPort) { } elseif ('https' === $scheme && 443 != $httpsPort) {
$port = ':'.$httpsPort; $port = ':'.$httpsPort;
} }