Skip to content

Commit

Permalink
MailPanel: attachmentId cast to int
Browse files Browse the repository at this point in the history
  • Loading branch information
MartkCz authored and JanTvrdik committed Nov 2, 2019
1 parent 85d4d7f commit f699010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MailPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

1 comment on commit f699010

@podolinek
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JanTvrdik Jan Plese add tag with version.

Please sign in to comment.