Revert "Fixes bug described in #3581"

This reverts commit e6c6e0bf2c.
This commit is contained in:
Hikkijp 2014-05-27 17:25:28 -03:00
parent e6c6e0bf2c
commit f7e98e7427
2 changed files with 1 additions and 5 deletions

View file

@ -536,10 +536,7 @@ class CakeRoute {
$out = str_replace($search, $replace, $out);
}
if (strpos($this->template, '**')) {
$out = str_replace('**', $params['pass'], $out);
}
elseif (strpos($this->template, '*')) {
if (strpos($this->template, '*')) {
$out = str_replace('*', $params['pass'], $out);
}
$out = str_replace('//', '/', $out);

View file

@ -334,7 +334,6 @@ class HtmlHelper extends AppHelper {
$escapeTitle = true;
if ($url !== null) {
$url = $this->url($url);
$url = str_replace('%2F', '/', $url);
} else {
$url = $this->url($title);
$title = htmlspecialchars_decode($url, ENT_QUOTES);