mirror of https://github.com/MISP/MISP
number of entries in the index lists
parent
a1b8719db4
commit
df7efb9d88
|
@ -17,7 +17,7 @@ class EventsController extends AppController {
|
|||
|
||||
public $components = array('Security', 'Email');
|
||||
public $paginate = array(
|
||||
'limit' => 50,
|
||||
'limit' => 60,
|
||||
'order' => array(
|
||||
'Event.date' => 'DESC'
|
||||
)
|
||||
|
|
|
@ -11,6 +11,9 @@ App::uses('File', 'Utility');
|
|||
class SignaturesController extends AppController {
|
||||
|
||||
public $components = array('Security');
|
||||
public $paginate = array(
|
||||
'limit' => 60,
|
||||
);
|
||||
|
||||
function beforeFilter() {
|
||||
// permit reuse of CSRF tokens on the search page.
|
||||
|
|
|
@ -166,6 +166,7 @@ class Signature extends AppModel {
|
|||
|
||||
function beforeDelete() {
|
||||
// delete attachments from the disk
|
||||
$this->read(); // first read the signature from the db
|
||||
if('attachment' == $this->data['Signature']['type'] ||
|
||||
'malware-sample'== $this->data['Signature']['type'] ) {
|
||||
// FIXME secure this filesystem access/delete by not allowing to change directories or go outside of the directory container.
|
||||
|
|
Loading…
Reference in New Issue