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:
@@ -225,7 +225,7 @@ class route
|
|||||||
// FIXME : Why do I add this slash ? I can not redirect the word to word/
|
// FIXME : Why do I add this slash ? I can not redirect the word to word/
|
||||||
// if (substr ($requestURL, -1) !== "/")
|
// if (substr ($requestURL, -1) !== "/")
|
||||||
// $requestURL .= "/";
|
// $requestURL .= "/";
|
||||||
if ($destURL[0] === "/")
|
if (substr ($destURL, 0, 1) === "/")
|
||||||
{
|
{
|
||||||
// Absolute : return to project base
|
// Absolute : return to project base
|
||||||
$destURL = $baseURL.substr ($destURL, 1);
|
$destURL = $baseURL.substr ($destURL, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user