route : redirect is now OK without the complete URL
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2075 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -130,7 +130,8 @@ class route
|
|||||||
$requestURL = $this->requestURL ();
|
$requestURL = $this->requestURL ();
|
||||||
if (substr ($requestURL, -1) !== "/")
|
if (substr ($requestURL, -1) !== "/")
|
||||||
$requestURL .= "/";
|
$requestURL .= "/";
|
||||||
if ($destURL[0] === "/")
|
if ($destURL[0] === "/" &&
|
||||||
|
substr ($destURL, 0, strlen ($baseURL)) !== $baseURL)
|
||||||
{
|
{
|
||||||
// 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