From f699010347212ae56d1bba72764d7835c4609cfd Mon Sep 17 00:00:00 2001 From: MartkCz Date: Thu, 24 Oct 2019 16:09:10 +0200 Subject: [PATCH] MailPanel: attachmentId cast to int --- src/MailPanel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MailPanel.php b/src/MailPanel.php index 49a0411..3be0364 100644 --- a/src/MailPanel.php +++ b/src/MailPanel.php @@ -182,7 +182,7 @@ private function tryHandleRequest(): void $this->handleSource($messageId); } elseif ($action === 'attachment' && is_string($messageId) && ctype_digit($attachmentId)) { - $this->handleAttachment($messageId, $attachmentId); + $this->handleAttachment($messageId, (int) $attachmentId); } elseif ($action === 'delete-one' && is_string($messageId)) { $this->handleDeleteOne($messageId);