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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user