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/enigma/enigma.php | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/enigma/enigma.php b/plugins/enigma/enigma.php index bda6ed1..8e8ded2 100644 --- a/plugins/enigma/enigma.php +++ b/plugins/enigma/enigma.php @@ -50,7 +50,7 @@ $enabled = $this->rc->config->get('enigma_encryption', true); // message displaying - if ($this->rc->action == 'show' || $this->rc->action == 'preview') { + if ($this->rc->action == 'show' || $this->rc->action == 'preview' || $this->rc->action == 'print') { $this->add_hook('message_load', array($this, 'message_load')); $this->add_hook('template_object_messagebody', array($this, 'message_output')); } @@ -80,7 +80,10 @@ // $this->register_action('plugin.enigmacerts', array($this, 'preferences_ui')); $this->load_ui(); - $this->ui->add_css(); + + if (empty($_REQUEST['_framed']) || strpos($this->rc->action, 'plugin.enigma') === 0) { + $this->ui->add_css(); + } } $this->add_hook('refresh', array($this, 'refresh')); -- Gitblit v1.9.1