From d462a729817b974d54194157216cd55c0752f09f Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 3 Feb 2012 10:43:09 -0600 Subject: [PATCH] adjusting route class. --- laravel/routing/route.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/routing/route.php b/laravel/routing/route.php index 54c70f3d..ce538ad5 100644 --- a/laravel/routing/route.php +++ b/laravel/routing/route.php @@ -54,8 +54,6 @@ class Route { $this->key = $key; $this->action = $action; - $this->parameters = array_map('urldecode', $parameters); - // Extract each URI from the route key. Since the route key has the request // method, we will extract that from the string. If the URI points to the // root of the application, a single forward slash will be returned. @@ -68,6 +66,8 @@ class Route { // the bundle so we know if we need to run a bundle's global filters // when executing the route. $this->bundle = Bundle::resolve(head(explode('/', $this->uris[0]))); + + $this->parameters = array_map('urldecode', $parameters); } /**