Skip to content

Commit

Permalink
Fixed incorrect routing if url path looks like a domain name [getgrav…
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Mar 31, 2021
1 parent edafa68 commit 0af3385
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions system/src/Grav/Common/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ public function init()
// 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'])) {
Expand Down

0 comments on commit 0af3385

Please sign in to comment.