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