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