urldecode all route parameters.

This commit is contained in:
Taylor Otwell 2012-02-03 10:35:15 -06:00
parent 3780da4ad1
commit 17213fe073
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ public function __construct($key, $action, $parameters = array())
{ {
$this->key = $key; $this->key = $key;
$this->action = $action; $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 // 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 // method, we will extract that from the string. If the URI points to the