Update url.class.php

This commit is contained in:
Diego Najar 2017-09-20 17:15:49 +02:00 committed by GitHub
parent 7c378836f2
commit 9eb880f6d3
1 changed files with 3 additions and 1 deletions

View File

@ -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;