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:
gwoo 2007-12-23 01:17:48 +00:00
parent a2624df5f2
commit 17610a5287
2 changed files with 7 additions and 7 deletions

View file

@ -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)) {