Cleanup DoPgpVerifyMessage action param handling

This commit is contained in:
the-djmaze 2024-02-20 16:03:47 +01:00
parent 5a2d2fd0e5
commit 3d168b4688

View file

@ -297,16 +297,15 @@ trait Pgp
*/ */
public function DoPgpVerifyMessage() : array public function DoPgpVerifyMessage() : array
{ {
$sFolderName = $this->GetActionParam('folder', '');
$iUid = (int) $this->GetActionParam('uid', 0);
$sBodyPart = $this->GetActionParam('bodyPart', ''); $sBodyPart = $this->GetActionParam('bodyPart', '');
$sSigPart = $this->GetActionParam('sigPart', '');
if ($sBodyPart) { if ($sBodyPart) {
$result = [ $result = [
'text' => \preg_replace('/\\r?\\n/su', "\r\n", $sBodyPart), 'text' => \preg_replace('/\\r?\\n/su', "\r\n", $sBodyPart),
'signature' => $this->GetActionParam('sigPart', '') 'signature' => $this->GetActionParam('sigPart', '')
]; ];
} else { } else {
$sFolderName = $this->GetActionParam('folder', '');
$iUid = (int) $this->GetActionParam('uid', 0);
$sBodyPartId = $this->GetActionParam('bodyPartId', ''); $sBodyPartId = $this->GetActionParam('bodyPartId', '');
$sSigPartId = $this->GetActionParam('sigPartId', ''); $sSigPartId = $this->GetActionParam('sigPartId', '');
// $sMicAlg = $this->GetActionParam('micAlg', ''); // $sMicAlg = $this->GetActionParam('micAlg', '');