urldecode all route parameters.

This commit is contained in:
Taylor Otwell
2012-02-03 10:35:15 -06:00
parent 3780da4ad1
commit 17213fe073

View File

@@ -53,7 +53,8 @@ class Route {
{
$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