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_spellchecker.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/program/lib/Roundcube/rcube_spellchecker.php b/program/lib/Roundcube/rcube_spellchecker.php index 58b3727..a579cac 100644 --- a/program/lib/Roundcube/rcube_spellchecker.php +++ b/program/lib/Roundcube/rcube_spellchecker.php @@ -46,7 +46,7 @@ { $this->rc = rcube::get_instance(); $this->engine = $this->rc->config->get('spellcheck_engine', 'googie'); - $this->lang = $lang ? $lang : 'en'; + $this->lang = $lang ?: 'en'; $this->options = array( 'ignore_syms' => $this->rc->config->get('spellcheck_ignore_syms'), @@ -245,7 +245,7 @@ */ function error() { - return $this->error ? $this->error : ($this->backend ? $this->backend->error() : false); + return $this->error ?: ($this->backend ? $this->backend->error() : false); } private function html2text($text) -- Gitblit v1.9.1