route: redirect: the destURL analyzer is stronger

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3428 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-03-15 09:27:04 +00:00
parent 086ce242c5
commit ed3d625fa4

View File

@@ -225,7 +225,7 @@ class route
// FIXME : Why do I add this slash ? I can not redirect the word to word/
// if (substr ($requestURL, -1) !== "/")
// $requestURL .= "/";
if ($destURL[0] === "/")
if (substr ($destURL, 0, 1) === "/")
{
// Absolute : return to project base
$destURL = $baseURL.substr ($destURL, 1);