From e454227d32a5cedd423755d42e7d7bc93e90a7ae Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 24 Oct 2011 23:43:57 -0500 Subject: [PATCH] refactoring the uri class more. --- laravel/uri.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/laravel/uri.php b/laravel/uri.php index 63cbbdc2..756ec090 100644 --- a/laravel/uri.php +++ b/laravel/uri.php @@ -40,7 +40,9 @@ public function get() { if ( ! is_null($this->uri)) return $this->uri; - return $this->uri = $this->format($this->clean(parse_url($this->server['REQUEST_URI'], PHP_URL_PATH))); + $uri = parse_url($this->server['REQUEST_URI'], PHP_URL_PATH); + + return $this->uri = $this->format($this->clean($uri)); } /**