From 3d168b4688825d75b3d640aaea1ab89ff6024b07 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 20 Feb 2024 16:03:47 +0100 Subject: [PATCH] Cleanup DoPgpVerifyMessage action param handling --- snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Pgp.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Pgp.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Pgp.php index 9643fd02b..ea819cd17 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Pgp.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Pgp.php @@ -297,16 +297,15 @@ trait Pgp */ public function DoPgpVerifyMessage() : array { - $sFolderName = $this->GetActionParam('folder', ''); - $iUid = (int) $this->GetActionParam('uid', 0); $sBodyPart = $this->GetActionParam('bodyPart', ''); - $sSigPart = $this->GetActionParam('sigPart', ''); if ($sBodyPart) { $result = [ 'text' => \preg_replace('/\\r?\\n/su', "\r\n", $sBodyPart), 'signature' => $this->GetActionParam('sigPart', '') ]; } else { + $sFolderName = $this->GetActionParam('folder', ''); + $iUid = (int) $this->GetActionParam('uid', 0); $sBodyPartId = $this->GetActionParam('bodyPartId', ''); $sSigPartId = $this->GetActionParam('sigPartId', ''); // $sMicAlg = $this->GetActionParam('micAlg', '');