From 6b5158e9d2d5e313408d7637e9bf26ac9d389391 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 24 Aug 2018 13:58:56 +0000 Subject: [PATCH] route : catch the base of site on "." too git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4489 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- route.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/route.php b/route.php index 0f2aadc..3928b6a 100644 --- a/route.php +++ b/route.php @@ -209,7 +209,8 @@ class route { // If there is a directory before the index.php file, must remove the // directory structure - if (dirname ($_SERVER["SCRIPT_NAME"]) !== "/") + if (dirname ($_SERVER["SCRIPT_NAME"]) !== "/" && + dirname ($_SERVER["SCRIPT_NAME"]) !== ".") $url .= substr ($_SERVER["REQUEST_URI"], 1+strlen (dirname ($_SERVER["SCRIPT_NAME"]))); else