From 899ef6300b554d77aa842e0e987973d6980e2898 Mon Sep 17 00:00:00 2001 From: noud Date: Wed, 17 Oct 2012 13:00:50 +0200 Subject: [PATCH] blackhole i have an idea this blackholeCallback seems to overcome a lot of blackhole situations we got. Notably during deleting multiple events from the index, this improved not getting a blackhole a lot. --- app/Controller/AppController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Controller/AppController.php b/app/Controller/AppController.php index 62dc2ce78..ad9f250d6 100755 --- a/app/Controller/AppController.php +++ b/app/Controller/AppController.php @@ -87,6 +87,8 @@ class AppController extends Controller { throw new ForbiddenException('Incorrect authentication key'); } } + } else { + $this->Security->blackHoleCallback = 'blackhole'; } // These variables are required for every view @@ -94,6 +96,10 @@ class AppController extends Controller { $this->set('isAdmin', $this->_isAdmin()); } + public function blackhole($type) { + // handle errors. + } + protected function _isRest() { return (isset($this->RequestHandler) && $this->RequestHandler->isXml()); }