mirror of https://github.com/MISP/MISP
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.pull/61/head
parent
2763f0811b
commit
899ef6300b
|
@ -87,6 +87,8 @@ class AppController extends Controller {
|
||||||
throw new ForbiddenException('Incorrect authentication key');
|
throw new ForbiddenException('Incorrect authentication key');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$this->Security->blackHoleCallback = 'blackhole';
|
||||||
}
|
}
|
||||||
|
|
||||||
// These variables are required for every view
|
// These variables are required for every view
|
||||||
|
@ -94,6 +96,10 @@ class AppController extends Controller {
|
||||||
$this->set('isAdmin', $this->_isAdmin());
|
$this->set('isAdmin', $this->_isAdmin());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function blackhole($type) {
|
||||||
|
// handle errors.
|
||||||
|
}
|
||||||
|
|
||||||
protected function _isRest() {
|
protected function _isRest() {
|
||||||
return (isset($this->RequestHandler) && $this->RequestHandler->isXml());
|
return (isset($this->RequestHandler) && $this->RequestHandler->isXml());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue