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 --- plugins/managesieve/managesieve.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php index f41394e..68d56a1 100644 --- a/plugins/managesieve/managesieve.php +++ b/plugins/managesieve/managesieve.php @@ -84,10 +84,10 @@ // include styles $skin_path = $this->local_skin_path(); - if ($this->rc->task == 'settings' || $sieve_action) { + if ($sieve_action || ($this->rc->task == 'settings' && empty($_REQUEST['_framed']))) { $this->include_stylesheet("$skin_path/managesieve.css"); } - else { + else if ($this->rc->task == 'mail') { $this->include_stylesheet("$skin_path/managesieve_mail.css"); } @@ -239,7 +239,7 @@ $include_path .= ini_get('include_path'); set_include_path($include_path); - $class_name = 'rcube_sieve_' . ($type ? $type : 'engine'); + $class_name = 'rcube_sieve_' . ($type ?: 'engine'); $this->engine = new $class_name($this); } -- Gitblit v1.9.1