mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding Router fix for # URLs (Ticket #1552)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3715 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7506859555
commit
9c8d4d83dd
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ class Router extends Overloadable {
|
|||
}
|
||||
$output = $base . '/' . join('/', $urlOut);
|
||||
} else {
|
||||
if (((strpos($url, '://')) || (strpos($url, 'javascript:') === 0) || (strpos($url, 'mailto:') === 0)) || $url == '#') {
|
||||
if (((strpos($url, '://')) || (strpos($url, 'javascript:') === 0) || (strpos($url, 'mailto:') === 0)) || (strpos($url, '#') === 0)) {
|
||||
return $url;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue