Clean up request::uri method.
This commit is contained in:
parent
dae7912c40
commit
9b9a880326
|
@ -43,10 +43,7 @@ public static function uri()
|
||||||
throw new \Exception("Malformed request URI. Request terminated.");
|
throw new \Exception("Malformed request URI. Request terminated.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strpos($uri, '/index.php') === 0)
|
$uri = str_replace('/index.php', '', $uri);
|
||||||
{
|
|
||||||
$uri = str_replace('/index.php', '', $uri);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------
|
// -------------------------------------------------------
|
||||||
// Neither PATH_INFO or REQUEST_URI are available.
|
// Neither PATH_INFO or REQUEST_URI are available.
|
||||||
|
|
Loading…
Reference in New Issue