Url: Fix host check in fromPath()

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-21 14:03:53 +02:00
parent c8d3aa2517
commit 776d06d6ca
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ class Url
: '');
$urlObject->setIsExternal();
} elseif (
(isset($urlParts['host]']) && $urlParts['host'] !== $request->getServer('SERVER_NAME'))
(isset($urlParts['host']) && $urlParts['host'] !== $request->getServer('SERVER_NAME'))
|| (isset($urlParts['port']) && $urlParts['port'] != $request->getServer('SERVER_PORT'))
) {
$baseUrl = $urlParts['host'] . (isset($urlParts['port']) ? (':' . $urlParts['port']) : '');