From 776d06d6ca8ec0f9387341154de94397b9602d13 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 21 Sep 2015 14:03:53 +0200 Subject: [PATCH] Url: Fix host check in fromPath() refs #5600 --- library/Icinga/Web/Url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/Url.php b/library/Icinga/Web/Url.php index 3a07c9034..0a7996bc1 100644 --- a/library/Icinga/Web/Url.php +++ b/library/Icinga/Web/Url.php @@ -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']) : '');