This commit is contained in:
Fabien Potencier 2012-11-24 12:10:50 +01:00
parent 5acbddbdd7
commit c20efc7c78
1 changed files with 3 additions and 1 deletions

View File

@ -96,6 +96,7 @@ class RedirectController extends ContainerAware
$httpPort = $this->container->getParameter('request_listener.http_port');
}
}
if (null !== $httpPort && 80 != $httpPort) {
$port = ":$httpPort";
}
@ -105,8 +106,9 @@ class RedirectController extends ContainerAware
$httpsPort = $request->getPort();
} elseif ($this->container->hasParameter('request_listener.https_port')) {
$httpsPort = $this->container->getParameter('request_listener.https_port');
};
}
}
if (null !== $httpsPort && 443 != $httpsPort) {
$port = ":$httpsPort";
}