From bd0551b22076b82a6d49e9f7a2b2e0c90a1b2326 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Fri, 05 Feb 2016 07:25:27 -0500 Subject: [PATCH] Secure also downloads of addressbook exports, managesieve script exports and Enigma keys exports --- program/lib/Roundcube/rcube_result_index.php | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/program/lib/Roundcube/rcube_result_index.php b/program/lib/Roundcube/rcube_result_index.php index d87af33..5ea390b 100644 --- a/program/lib/Roundcube/rcube_result_index.php +++ b/program/lib/Roundcube/rcube_result_index.php @@ -30,9 +30,9 @@ protected $raw_data; protected $mailbox; - protected $meta = array(); + protected $meta = array(); protected $params = array(); - protected $order = 'ASC'; + protected $order = 'ASC'; const SEPARATOR_ELEMENT = ' '; @@ -40,9 +40,10 @@ /** * Object constructor. */ - public function __construct($mailbox = null, $data = null) + public function __construct($mailbox = null, $data = null, $order = null) { $this->mailbox = $mailbox; + $this->order = $order == 'DESC' ? 'DESC' : 'ASC'; $this->init($data); } -- Gitblit v1.9.1