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 @@ public function __construct($key, $action, $parameters = array()) $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 @@ public function __construct($key, $action, $parameters = array()) // 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); } /**