From 5e012bd66e32227d13f5952b5ed367a22ae07bd5 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 22 Jan 2024 14:56:05 +0100 Subject: [PATCH] Bugfix: redesign of addPgpEncrypted() failed --- .../v/0.0.0/app/libraries/RainLoop/Actions/Messages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Messages.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Messages.php index 8ce3917d7..49139c2b3 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Messages.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Messages.php @@ -1056,7 +1056,7 @@ trait Messages unset($sSigned); } else if ($sEncrypted = $this->GetActionParam('encrypted', '')) { - $oPart->addPgpEncrypted(\preg_replace('/\\r?\\n/su', "\r\n", \trim($sEncrypted))); + $oMessage->addPgpEncrypted(\preg_replace('/\\r?\\n/su', "\r\n", \trim($sEncrypted))); unset($sEncrypted); } else if ($sHtml = $this->GetActionParam('html', '')) { @@ -1222,7 +1222,7 @@ trait Messages $GPG->addEncryptKey($sFingerprint); } - $oPart->addPgpEncrypted($GPG->encryptStream($fp)); + $oMessage->addPgpEncrypted($GPG->encryptStream($fp)); } $this->Plugins()->RunHook('filter.build-message', array($oMessage));