Browse Source

fix https default port check

Gordon Franke 14 years ago
parent
commit
86f888f91c

+ 2 - 1
src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php

@@ -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;
         }