From 17213fe07314d21481f78eef3527d95d1efb6d3b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 3 Feb 2012 10:35:15 -0600 Subject: [PATCH] urldecode all route parameters. --- laravel/routing/route.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/laravel/routing/route.php b/laravel/routing/route.php index 4d0ce72e..54c70f3d 100644 --- a/laravel/routing/route.php +++ b/laravel/routing/route.php @@ -53,7 +53,8 @@ public function __construct($key, $action, $parameters = array()) { $this->key = $key; $this->action = $action; - $this->parameters = $parameters; + + $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