Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Model
diff options
context:
space:
mode:
authorCyrille Bollu <cyrpub@bollu.be>2020-01-07 16:46:30 +0300
committerCyrille Bollu <cyrpub@bollu.be>2020-01-07 16:46:30 +0300
commit650dc57bf14ba62dc9c2983ca72e31af203a97d2 (patch)
tree0363b54bf6107325d00883e45d13ba63d882bf3b /lib/Model
parent5f5f66e9bca81a6a8ba362ef464c0184d7647cf8 (diff)
base64_encode $folderId => Fixes https://github.com/nextcloud/mail/issues/2262
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/IMAPMessage.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Model/IMAPMessage.php b/lib/Model/IMAPMessage.php
index 506fe526f..74ec3aa04 100644
--- a/lib/Model/IMAPMessage.php
+++ b/lib/Model/IMAPMessage.php
@@ -49,6 +49,7 @@ use OCP\AppFramework\Db\DoesNotExistException;
use OCP\Files\File;
use OCP\Files\SimpleFS\ISimpleFile;
use OCP\Util;
+use function base64_encode;
use function mb_convert_encoding;
class IMAPMessage implements IMessage, JsonSerializable {
@@ -431,7 +432,7 @@ class IMAPMessage implements IMessage, JsonSerializable {
public function getHtmlBody(int $accountId, string $folderId, int $messageId): string {
return $this->htmlService->sanitizeHtmlMailBody($this->htmlMessage, [
'accountId' => $accountId,
- 'folderId' => $folderId,
+ 'folderId' => base64_encode($folderId),
'messageId' => $messageId,
], function ($cid) {
$match = array_filter($this->attachments,