From 9eb880f6d333a54e27d96aaa21b4c4f48d4bae6e Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Wed, 20 Sep 2017 17:15:49 +0200 Subject: [PATCH] Update url.class.php --- bl-kernel/url.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bl-kernel/url.class.php b/bl-kernel/url.class.php index 6d296112..936e2da5 100644 --- a/bl-kernel/url.class.php +++ b/bl-kernel/url.class.php @@ -61,7 +61,7 @@ class Url $subString = mb_substr($this->uri, 0, $filterFullLenght, CHARSET); // Check coincidence without the last slash at the end, this case is notfound - if ($subString==$filterURIwoSlash) { + if (($subString==$filterURIwoSlash) && ($filterName!='admin')) { $this->setNotFound(); return false; } @@ -79,6 +79,8 @@ class Url } elseif (!empty($this->slug) && ($filterName=='blog')) { $this->setNotFound(); return false; + } elseif ($filterName=='admin') { + $this->slug = ltrim($this->slug, '/'); } return true;