[BUGFIX] Added urldecode to RouterRessource, RouterRoute and

RouterController class to ensure that urls with special letters can be
picked up by a custom regular expression (read documentation: match).
This commit is contained in:
Simon Sessingø
2016-03-01 22:50:26 +01:00
parent 35ee79d02c
commit 115c8e510a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ class RouterController extends RouterEntry {
}
public function matchRoute(Request $request) {
$url = parse_url($request->getUri());
$url = parse_url(urldecode($request->getUri()));
$url = rtrim($url['path'], '/') . '/';
if(strtolower($url) == strtolower($this->url) || stripos($url, $this->url) === 0) {