Fixing default/fallback url when no referrer is set.

Fixes #1761
This commit is contained in:
mark_story 2011-06-09 20:34:17 -04:00
parent 71e2c8e734
commit 182a89b0a0

View file

@ -329,7 +329,7 @@ class AuthComponent extends Component {
}
$this->flash($this->authError);
$controller->redirect($controller->referer(), null, true);
$controller->redirect($controller->referer('/'), null, true);
return false;
}