Skip to content

Commit

Permalink
Fixed issue with high CPU load on parsing e-mails in PostMaster filte…
Browse files Browse the repository at this point in the history
…r DetectAttachment.
  • Loading branch information
jepf committed Jul 18, 2022
1 parent f3d35fb commit 61cfc74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 6.4.1 2022-??-??
- 2022-07-05 Attachment filenames in ticket zoom will now be truncated if they are too long to be displayed correctly.
- 2022-06-23 Fixed issue with high CPU load on parsing e-mails in PostMaster filter DetectAttachment.
- 2022-06-22 Fixed OAuth2 authentication when using POP3 with Microsoft Office 365 or Outlook. [#259](https://github.com/znuny/Znuny/issues/259)
- 2022-06-20 Improved S/MIME key storage.
- 2022-06-09 Added S/MIME check for sender header. Thanks to @akmet [PR#68](https://github.com/znuny/Znuny/pull/68).
Expand Down Expand Up @@ -182,6 +183,7 @@

# 6.0.45 2022-??-??
- 2022-07-05 Attachment filenames in ticket zoom will now be truncated if they are too long to be displayed correctly.
- 2022-06-23 Fixed issue with high CPU load on parsing e-mails in PostMaster filter DetectAttachment.

# 6.0.44 2022-06-15
- 2022-06-09 Added S/MIME check for sender header. Thanks to @akmet [PR#68](https://github.com/znuny/Znuny/pull/68).
Expand Down
2 changes: 1 addition & 1 deletion Kernel/System/PostMaster/Filter/DetectAttachment.pm
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ sub Run {
)
{
my ($ImageID) = ( $Attachment->{ContentID} =~ m{^<(.*)>$}ixms );
if ( grep { $_->{Content} =~ m{<img.*src=.*['|"]cid:\Q$ImageID\E['|"].*>}ixms } @Attachments ) {
if ( grep { $_->{Content} =~ m{<img.*src=.*['|"]cid:\Q$ImageID\E['|"].*>}xms } @Attachments ) {
$AttachmentInline = 1;
}
}
Expand Down

0 comments on commit 61cfc74

Please sign in to comment.