Skip to content

Commit

Permalink
urldecode custom route element values
Browse files Browse the repository at this point in the history
  • Loading branch information
teddy authored and markstory committed Feb 18, 2012
1 parent 2f51ef0 commit e6905b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/Cake/Routing/Route/CakeRoute.php
Expand Up @@ -221,7 +221,13 @@ public function parse($url) {
}
$route[$key] = $value;
}


foreach ($this->keys as $key) {
if (isset($route[$key])) {
$route[$key] = rawurldecode($route[$key]);
}
}

if (isset($route['_args_'])) {
list($pass, $named) = $this->_parseArgs($route['_args_'], $route);
$route['pass'] = array_merge($route['pass'], $pass);
Expand Down

0 comments on commit e6905b4

Please sign in to comment.