Subject: | possible bug in _getContentType |
As far as I can tell, this line in SMIME.pl sub _getContentType:
} elsif($line =~ m/^([^:]+):\s?(.*)/) {
Should be:
} elsif($line =~ m/^([^\s:][^:]*?):\s?(.*)/) {
IE. when a header line continuation line is reached, if that line includes a colon (":"), then it will be improperly treated as a separate header line.
Here's an example header line that is not handled correctly via the existing code:
Content-Type: multipart/signed; protocol="application/pkcs7-signature";
micalg=sha1; boundary="8323329-949354117-1422908037=:4488"