mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Merged:
[1688] git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1689 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
769e83edaa
commit
b19e1cd6cb
2 changed files with 5 additions and 1 deletions
|
@ -6,4 +6,4 @@
|
|||
// +---------------------------------------------------------------------------------------------------+ //
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
0.10.4.1686_beta
|
||||
0.10.4.1689_beta
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue