From 27dff6fcc7ea2e6a57c1474385468a64f58ab8c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vilius=20=C5=A0umskas?= Date: Wed, 24 Apr 2024 22:09:24 +0300 Subject: [PATCH] Revert "Fixed incorrect routing if url path looks like a domain name [#2184]" Previous change broke running Grav under Load Balancer with custom_base_url set. Also, it's not a good idea to add 3rd party domain into host value, which could be accidently reused some time in the future. This (not counting CHANGELOG) reverts commit 0af33850a68dd2e9d3e3a9e1bd2d25215b958eb5. --- system/src/Grav/Common/Uri.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Common/Uri.php b/system/src/Grav/Common/Uri.php index 374dccce2..c30079157 100644 --- a/system/src/Grav/Common/Uri.php +++ b/system/src/Grav/Common/Uri.php @@ -205,8 +205,8 @@ class Uri // set active language $uri = $language->setActiveFromUri($uri); - // split the URL and params (and make sure that the path isn't seen as domain) - $bits = parse_url('http://domain.com' . $uri); + // split the URL and params + $bits = parse_url($uri); //process fragment if (isset($bits['fragment'])) {