mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
153141a6c7
commit
6c75e3697d
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue