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:
nate 2006-10-18 21:15:54 +00:00
parent 7506859555
commit 9c8d4d83dd

View file

@ -435,7 +435,7 @@ class Router extends Overloadable {
} }
$output = $base . '/' . join('/', $urlOut); $output = $base . '/' . join('/', $urlOut);
} else { } 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; return $url;
} }