[1688]

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1689 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2005-12-29 16:18:17 +00:00
parent 769e83edaa
commit b19e1cd6cb
2 changed files with 5 additions and 1 deletions

View file

@ -6,4 +6,4 @@
// +---------------------------------------------------------------------------------------------------+ //
///////////////////////////////////////////////////////////////////////////////////////////////////////////
0.10.4.1686_beta
0.10.4.1689_beta

View file

@ -281,6 +281,10 @@ class Controller extends Object
function redirect ($url)
{
$this->autoRender = false;
if(strpos($url, '/') == 0)
{
$url = substr("$url", 1);
}
header ('Location: '.$this->webroot.$url);
}