From fec6c1c6cb022b59a4332c2d1a3238dff6b7af4c Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 17 Jun 2012 20:50:00 -0400 Subject: [PATCH] Fix security component causing black holes on error pages. Fixes #2966 --- lib/Cake/Controller/Component/SecurityComponent.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Cake/Controller/Component/SecurityComponent.php b/lib/Cake/Controller/Component/SecurityComponent.php index 1617c46a1..5011fe8eb 100644 --- a/lib/Cake/Controller/Component/SecurityComponent.php +++ b/lib/Cake/Controller/Component/SecurityComponent.php @@ -205,6 +205,10 @@ class SecurityComponent extends Component { * @return void */ public function startup(Controller $controller) { + if ($controller->name == 'CakeError') { + return true; + } + $this->request = $controller->request; $this->_action = $this->request->params['action']; $this->_methodsRequired($controller);