ソースを参照

Fix security component causing black holes on error pages.

Fixes #2966
mark_story 14 年 前
コミット
fec6c1c6cb
1 ファイル変更4 行追加0 行削除
  1. 4 0
      lib/Cake/Controller/Component/SecurityComponent.php

+ 4 - 0
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);