From f48c0b1700e70ce6457f5d72cc02e031ca7cd3d5 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Wed, 27 Dec 2017 13:39:16 -0700 Subject: [PATCH] fix for special chars in base path #1799 --- CHANGELOG.md | 1 + system/src/Grav/Common/Uri.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8d0d0b47..a100d969b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/system/src/Grav/Common/Uri.php b/system/src/Grav/Common/Uri.php index fb8ccd6ff..a67b19217 100644 --- a/system/src/Grav/Common/Uri.php +++ b/system/src/Grav/Common/Uri.php @@ -301,7 +301,7 @@ class Uri $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();