mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 06:06:16 +02:00
Fixed incorrect routing if url path looks like a domain name [#2184]
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
* Fixed `UserIndex` not implementing `UserCollectionInterface`
|
||||
* Fixed missing `onAdminAfterDelete` event call in `Flex Pages`
|
||||
* Fixed system templates not getting scanned [#3296](https://github.com/getgrav/grav/issues/3296)
|
||||
* Fixed incorrect routing if url path looks like a domain name [#2184](https://github.com/getgrav/grav/issues/2184)
|
||||
|
||||
# v1.7.9
|
||||
## 03/19/2021
|
||||
|
||||
@@ -205,8 +205,8 @@ class Uri
|
||||
// set active language
|
||||
$uri = $language->setActiveFromUri($uri);
|
||||
|
||||
// split the URL and params
|
||||
$bits = parse_url($uri);
|
||||
// split the URL and params (and make sure that the path isn't seen as domain)
|
||||
$bits = parse_url('http://domain.com' . $uri);
|
||||
|
||||
//process fragment
|
||||
if (isset($bits['fragment'])) {
|
||||
|
||||
Reference in New Issue
Block a user