Skip to content

Commit

Permalink
fix for special chars in base path #1799
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Dec 27, 2017
1 parent 5df6db9 commit f48c0b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
## mm/dd/2017

1. [](#bugfix)
* Fix for base paths containing special characters [#1799](https://github.com/getgrav/grav/issues/1799)
* Fix for `vundefined` error for version numbers in GPM [form#222](https://github.com/getgrav/grav-plugin-form/issues/222)

# v1.4.0-beta.2
Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public function init()

$this->url = $this->base . $this->uri;

$uri = str_replace($this->root, '', $this->url);
$uri = str_replace(static::filterPath($this->root), '', $this->url);

// remove the setup.php based base if set:
$setup_base = $grav['pages']->base();
Expand Down

0 comments on commit f48c0b1

Please sign in to comment.