Fix security component causing black holes on error pages.

Fixes #2966
This commit is contained in:
mark_story 2012-06-17 20:50:00 -04:00
parent 645e981cf2
commit fec6c1c6cb

View file

@ -205,6 +205,10 @@ class SecurityComponent extends Component {
* @return void * @return void
*/ */
public function startup(Controller $controller) { public function startup(Controller $controller) {
if ($controller->name == 'CakeError') {
return true;
}
$this->request = $controller->request; $this->request = $controller->request;
$this->_action = $this->request->params['action']; $this->_action = $this->request->params['action'];
$this->_methodsRequired($controller); $this->_methodsRequired($controller);