From be58308bcc1b0216c43e3ffd69defd2f3418f7ad Mon Sep 17 00:00:00 2001 From: michu2k Date: Tue, 30 Apr 2019 01:58:04 +0200 Subject: [PATCH] Fixed a bug, when a tag with the same name as a folder didn't display --- inc/core/lib/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/core/lib/Router.php b/inc/core/lib/Router.php index 16e83ad..7c805ee 100644 --- a/inc/core/lib/Router.php +++ b/inc/core/lib/Router.php @@ -61,7 +61,7 @@ class Router } $url = rtrim(dirname($_SERVER["SCRIPT_NAME"]), '/'); - $url = trim(str_replace($url, '', $_SERVER['PATH_INFO']), '/'); + $url = trim(preg_replace('#'.$url.'#', '', $_SERVER['PATH_INFO'], 1), '/'); if ($returnPath) { return $url;