fix bug in request uri parsing.
This commit is contained in:
parent
880fd106c7
commit
527340d793
|
|
@ -36,7 +36,7 @@ public static function uri()
|
||||||
{
|
{
|
||||||
if ( ! is_null(static::$uri)) return static::$uri;
|
if ( ! is_null(static::$uri)) return static::$uri;
|
||||||
|
|
||||||
$uri = $_SERVER['REQUEST_URI'];
|
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
|
||||||
|
|
||||||
// Remove the root application URL from the request URI. If the application
|
// Remove the root application URL from the request URI. If the application
|
||||||
// is nested within a sub-directory of the web document root, this will get
|
// is nested within a sub-directory of the web document root, this will get
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue