mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Bugfix: redesign of addPgpEncrypted() failed
This commit is contained in:
parent
a80cb495d2
commit
5e012bd66e
1 changed files with 2 additions and 2 deletions
|
|
@ -1056,7 +1056,7 @@ trait Messages
|
||||||
unset($sSigned);
|
unset($sSigned);
|
||||||
|
|
||||||
} else if ($sEncrypted = $this->GetActionParam('encrypted', '')) {
|
} 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);
|
unset($sEncrypted);
|
||||||
|
|
||||||
} else if ($sHtml = $this->GetActionParam('html', '')) {
|
} else if ($sHtml = $this->GetActionParam('html', '')) {
|
||||||
|
|
@ -1222,7 +1222,7 @@ trait Messages
|
||||||
$GPG->addEncryptKey($sFingerprint);
|
$GPG->addEncryptKey($sFingerprint);
|
||||||
}
|
}
|
||||||
|
|
||||||
$oPart->addPgpEncrypted($GPG->encryptStream($fp));
|
$oMessage->addPgpEncrypted($GPG->encryptStream($fp));
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->Plugins()->RunHook('filter.build-message', array($oMessage));
|
$this->Plugins()->RunHook('filter.build-message', array($oMessage));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue