mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-04 02:22:39 +00:00
closes #3302, Render is to meant to output and allow the program to continue executing. Redirect generally serves to stop the program and start fresh with something new. This changeset makes exit the default behavior on redirect.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6208 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
a2624df5f2
commit
17610a5287
2 changed files with 7 additions and 7 deletions
|
@ -439,7 +439,7 @@ class Controller extends Object {
|
|||
* @param boolean $exit If true, exit() will be called after the redirect
|
||||
* @access public
|
||||
*/
|
||||
function redirect($url, $status = null, $exit = false) {
|
||||
function redirect($url, $status = null, $exit = true) {
|
||||
$this->autoRender = false;
|
||||
|
||||
if (is_array($status)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue