From 527340d793f2ac0de3d61938770b9407b61ec8c7 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 1 Nov 2011 23:41:02 -0500 Subject: [PATCH] fix bug in request uri parsing. --- laravel/request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/request.php b/laravel/request.php index 67c5ab8c..b25b903b 100644 --- a/laravel/request.php +++ b/laravel/request.php @@ -36,7 +36,7 @@ public static function 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 // is nested within a sub-directory of the web document root, this will get