Fixes bug described in #3581

Routes with '/**' are now correctly handled when called by
$this->Html->link() in a view.
This commit is contained in:
Hikkijp 2014-05-27 13:50:08 -03:00
parent 153141a6c7
commit 6c75e3697d

View file

@ -536,7 +536,10 @@ class CakeRoute {
$out = str_replace($search, $replace, $out); $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('*', $params['pass'], $out);
} }
$out = str_replace('//', '/', $out); $out = str_replace('//', '/', $out);