route : catch the base of site on "." too

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4489 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2018-08-24 13:58:56 +00:00
parent 82ca9f6180
commit 6b5158e9d2

View File

@@ -209,7 +209,8 @@ class route
{ {
// If there is a directory before the index.php file, must remove the // If there is a directory before the index.php file, must remove the
// directory structure // directory structure
if (dirname ($_SERVER["SCRIPT_NAME"]) !== "/") if (dirname ($_SERVER["SCRIPT_NAME"]) !== "/" &&
dirname ($_SERVER["SCRIPT_NAME"]) !== ".")
$url .= substr ($_SERVER["REQUEST_URI"], $url .= substr ($_SERVER["REQUEST_URI"],
1+strlen (dirname ($_SERVER["SCRIPT_NAME"]))); 1+strlen (dirname ($_SERVER["SCRIPT_NAME"])));
else else