fix https default port check
This commit is contained in:
parent
e136718ed6
commit
86f888f91c
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user