From 182a89b0a05527e0a727993764ce77cde37f412b Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 9 Jun 2011 20:34:17 -0400 Subject: [PATCH] Fixing default/fallback url when no referrer is set. Fixes #1761 --- lib/Cake/Controller/Component/AuthComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Controller/Component/AuthComponent.php b/lib/Cake/Controller/Component/AuthComponent.php index bff7f0ad3a6..4063fc1446c 100644 --- a/lib/Cake/Controller/Component/AuthComponent.php +++ b/lib/Cake/Controller/Component/AuthComponent.php @@ -329,7 +329,7 @@ public function startup($controller) { } $this->flash($this->authError); - $controller->redirect($controller->referer(), null, true); + $controller->redirect($controller->referer('/'), null, true); return false; }