number of entries in the index lists

pull/61/head
Christophe Vandeplas 2012-03-26 13:11:06 +02:00
parent a1b8719db4
commit df7efb9d88
3 changed files with 5 additions and 1 deletions

View File

@ -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'
)

View File

@ -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.

View File

@ -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.