Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item14328: Don't crash if no mime parts
Caused by NotificationPlugin sending a simple non-MIME formatted email.
  • Loading branch information
gac410 committed Feb 25, 2017
1 parent a18bec4 commit 5f76c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Net.pm
Expand Up @@ -699,7 +699,7 @@ sub _fixMimePart {
# Skip if it's a multipart.
return if $part->subparts;

if ( $part->content_type =~ /^text\//i ) {
if ( $part->content_type && $part->content_type =~ /^text\//i ) {

# XXX It looks like Email::MIME has a bug with processing body
# texts when they heave utf8 flag on. The bug is preventing it from
Expand Down

0 comments on commit 5f76c08

Please sign in to comment.