Adding fix for #2137

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4537 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-02-18 15:25:56 +00:00
parent 7328080ce1
commit 4a9110828d

View file

@ -511,7 +511,7 @@ class Router extends Overloadable {
}
$output = $base . '/' . $output;
} else {
if (((strpos($url, '://')) || (strpos($url, 'javascript:') === 0) || (strpos($url, 'mailto:') === 0)) || (isset($url{0}) && $url{0} == '#')) {
if (((strpos($url, '://')) || (strpos($url, 'javascript:') === 0) || (strpos($url, 'mailto:') === 0)) || (substr($url,0,1) == '#')) {
return $url;
}