summaryrefslogtreecommitdiff
path: root/plugins/enigma/enigma.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-05-06 12:23:27 +0200
committerAleksander Machniak <alec@alec.pl>2013-05-06 12:23:27 +0200
commitce89ecd54277fdd8113320ba463dfab6d504b00c (patch)
tree08c918750a5561bd211cc262fcf54394d9c12b08 /plugins/enigma/enigma.php
parentc027ba7709a86c23038428de15ffed503e67c522 (diff)
Fix various PHP code bugs found using static analysis (#1489086)
Diffstat (limited to 'plugins/enigma/enigma.php')
-rw-r--r--plugins/enigma/enigma.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/enigma/enigma.php b/plugins/enigma/enigma.php
index c96b94620..1194d26c8 100644
--- a/plugins/enigma/enigma.php
+++ b/plugins/enigma/enigma.php
@@ -47,6 +47,8 @@ class enigma extends rcube_plugin
$rcmail = rcmail::get_instance();
$this->rc = $rcmail;
+ $section = rcube_utils::get_input_value('_section', rcube_utils::INPUT_GET);
+
if ($this->rc->task == 'mail') {
// message parse/display hooks
$this->add_hook('message_part_structure', array($this, 'parse_structure'));
@@ -79,7 +81,6 @@ class enigma extends rcube_plugin
$this->register_action('plugin.enigma', array($this, 'preferences_ui'));
// grab keys/certs management iframe requests
- $section = rcube_utils::get_input_value('_section', rcube_utils::INPUT_GET);
if ($this->rc->action == 'edit-prefs' && preg_match('/^enigma(certs|keys)/', $section)) {
$this->load_ui();
$this->ui->init($section);