From 4bc337c460be7e48e7184b70e675f69890c38bd7 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 13 Feb 2017 09:18:34 +0100 Subject: [PATCH] Enigma: Fix missing require statement for Crypt_GPG_KeyGenerator (#5641) --- CHANGELOG | 1 + plugins/enigma/lib/enigma_driver_gnupg.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index e4a02f10c..d8ec24127 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,6 +4,7 @@ CHANGELOG Roundcube Webmail - Managesieve: Fix handling of scripts with nested rules (#5540) - Fix variable substitution in ldap host for some use-cases, e.g. new_user_identity (#5544) - Enigma: Fix PHP fatal error when decrypting a message with invalid signature (#5555) +- Enigma: Fix missing require statement for Crypt_GPG_KeyGenerator (#5641) - Fix adding images to new identity signatures - Fix rsync error handling in installto.sh script (#5562) - Fix some advanced search issues with multiple addressbooks (#5572) diff --git a/plugins/enigma/lib/enigma_driver_gnupg.php b/plugins/enigma/lib/enigma_driver_gnupg.php index afa54ed2e..04e0476cd 100644 --- a/plugins/enigma/lib/enigma_driver_gnupg.php +++ b/plugins/enigma/lib/enigma_driver_gnupg.php @@ -281,6 +281,8 @@ class enigma_driver_gnupg extends enigma_driver */ public function gen_key($data) { + require_once 'Crypt/GPG/KeyGenerator.php'; + try { $debug = $this->rc->config->get('enigma_debug'); $keygen = new Crypt_GPG_KeyGenerator(array(