diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-12-12 17:27:03 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-12-16 12:11:39 +0300 |
commit | 59797e9ce4166c6ff65a49675d6fbf59327d2ce1 (patch) | |
tree | d20e8430d00f9aff11fb456f821c5f2da973b9fb /lib/Controller/MessagesController.php | |
parent | 12b87bf146e874725013d9c2f133550c740ca2aa (diff) |
Treat MIME part IDs as strings, not ints
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Controller/MessagesController.php')
-rwxr-xr-x | lib/Controller/MessagesController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Controller/MessagesController.php b/lib/Controller/MessagesController.php index 2e949df28..d4ca2c4a6 100755 --- a/lib/Controller/MessagesController.php +++ b/lib/Controller/MessagesController.php @@ -278,7 +278,7 @@ class MessagesController extends Controller { * @return AttachmentDownloadResponse */ public function downloadAttachment(int $accountId, string $folderId, int $messageId, - int $attachmentId) { + string $attachmentId) { $mailBox = $this->getFolder($accountId, $folderId); $attachment = $mailBox->getAttachment($messageId, $attachmentId); @@ -300,10 +300,10 @@ class MessagesController extends Controller { * @return JSONResponse */ public function saveAttachment(int $accountId, string $folderId, int $messageId, - int $attachmentId, string $targetPath) { + string $attachmentId, string $targetPath) { $mailBox = $this->getFolder($accountId, $folderId); - if ($attachmentId === 0) { + if ($attachmentId === '0') { // Save all attachments /* @var $m IMAPMessage */ $m = $mailBox->getMessage($messageId); |