diff options
author | Arnold Daniels <arnold@jasny.net> | 2013-11-14 18:14:19 +0100 |
---|---|---|
committer | Arnold Daniels <arnold@jasny.net> | 2013-11-14 18:14:19 +0100 |
commit | ef1edbe7cbb3522db5b4ea94203828f726cde00c (patch) | |
tree | 75403687e0a05d074313efb9d221182246c3f61a | |
parent | 20690393a2d21f8d1faad8989ec56a37dcb75e2f (diff) | |
download | router-ef1edbe7cbb3522db5b4ea94203828f726cde00c.zip router-ef1edbe7cbb3522db5b4ea94203828f726cde00c.tar.gz router-ef1edbe7cbb3522db5b4ea94203828f726cde00c.tar.bz2 |
Fixed bug routing with GET params
-rw-r--r-- | src/Jasny/Router.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Jasny/Router.php b/src/Jasny/Router.php index 943e541..fe897c8 100644 --- a/src/Jasny/Router.php +++ b/src/Jasny/Router.php @@ -141,7 +141,7 @@ class Router */ public static function getUrl() { - if (!isset(static::$url)) static::$url = $_SERVER['REQUEST_URI']; + if (!isset(static::$url)) static::$url = preg_replace('/\?.*$/', '', $_SERVER['REQUEST_URI']); return static::$url; } |