Additional URL-parsing fixes for IIS

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4701 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-03-28 16:42:11 +00:00
parent 43297e3abd
commit 823dac8166

View file

@ -231,7 +231,7 @@ class Router extends Object {
$out = array(); $out = array();
$r = $ext = null; $r = $ext = null;
if ($url && strpos($url, '/') !== 0 && !defined('SERVER_IIS')) { if ($url && strpos($url, '/') !== 0) {
$url = '/' . $url; $url = '/' . $url;
} }
if (strpos($url, '?') !== false) { if (strpos($url, '?') !== false) {