From a45cd5904f72e3b2096d0790800ce7c7ab63ed21 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Sun, 11 Feb 2024 22:09:11 +0100 Subject: [PATCH] Trim white space in PGP armored key #89 --- snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Pgp.php | 1 + 1 file changed, 1 insertion(+) 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 d4d391e69..c3764c6ee 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 @@ -219,6 +219,7 @@ trait Pgp $result = false; if ($sKey) { + $sKey = \trim($sKey); if ($this->GetActionParam('backup', '')) { $result = $result || Backup::PGPKey($sKey); }