diff --git a/lib/Cake/Routing/Route/CakeRoute.php b/lib/Cake/Routing/Route/CakeRoute.php index 74595c400..332aa804c 100644 --- a/lib/Cake/Routing/Route/CakeRoute.php +++ b/lib/Cake/Routing/Route/CakeRoute.php @@ -536,7 +536,11 @@ class CakeRoute { $out = str_replace($search, $replace, $out); } - if (strpos($this->template, '*')) { + if (strpos($this->template, '**')) { + $out = str_replace('**', $params['pass'], $out); + $out = str_replace('%2F', '/', $out); + } + elseif (strpos($this->template, '*')) { $out = str_replace('*', $params['pass'], $out); } $out = str_replace('//', '/', $out);