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/lib/Roundcube/rcube_sieve.php | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/plugins/managesieve/lib/Roundcube/rcube_sieve.php b/plugins/managesieve/lib/Roundcube/rcube_sieve.php index 59a7bc1..2d000fe 100644 --- a/plugins/managesieve/lib/Roundcube/rcube_sieve.php +++ b/plugins/managesieve/lib/Roundcube/rcube_sieve.php @@ -77,6 +77,8 @@ if (!empty($auth_cid)) { $authz = $username; $username = $auth_cid; + } + if (!empty($auth_pw)) { $password = $auth_pw; } @@ -109,7 +111,7 @@ */ public function error() { - return $this->error ? $this->error : false; + return $this->error ?: false; } /** -- Gitblit v1.9.1