diff --git a/app/Controller/EventsController.php b/app/Controller/EventsController.php index 2fbc11aa7..0b8e67b79 100644 --- a/app/Controller/EventsController.php +++ b/app/Controller/EventsController.php @@ -320,7 +320,7 @@ class EventsController extends AppController { // the correct key-id even if it is not the same as the emailaddress $key_import_output = $gpg->importKey($user['User']['gpgkey']); // say what key should be used to encrypt - $gpg = new Crypt_GPG(); + $gpg = new Crypt_GPG(array('homedir' => Configure::read('GnuPG.homedir'))); $gpg->addEncryptKey($key_import_output['fingerprint']); // use the key that was given in the import $body_enc_sig = $gpg->encrypt($body_signed, true); @@ -446,7 +446,7 @@ class EventsController extends AppController { // this isn't really necessary, but it gives it the fingerprint necessary for the next step $key_import_output = $gpg->importKey($reporter['gpgkey']); // say what key should be used to encrypt - $gpg = new Crypt_GPG(); + $gpg = new Crypt_GPG(array('homedir' => Configure::read('GnuPG.homedir'))); $gpg->addEncryptKey($key_import_output['fingerprint']); // use the key that was given in the import $body_enc_sig = $gpg->encrypt($body_signed, true);