mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
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 0af33850a6.
This commit is contained in:
parent
ee8d783d05
commit
27dff6fcc7
|
|
@ -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'])) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user