Subject: | Error in MIME::Lite::HTML - File ending jpeg not handled as image/jpg |
Date: | Sun, 24 Jun 2018 12:25:39 +0200 |
To: | bug-MIME-Lite-HTML [...] rt.cpan.org |
From: | Markus Rietzler <markus.rietzler [...] gmx.net> |
in sub create_image_part there is an error.
at the start you set the mime-type of the attachment.
you check against .gif, .png and .jpg. all other file endings are treated as shockwave, if not set in the calling script.
you should also check for .jpeg. it only requires this simple change, add the regex-check jpe?g
line 627:
elsif (lc($ur)=~/\.jpe?g$/i) {$type = "image/jpg";}
Markus