Package: sanitizer
Version: 1.76-1
Tags: patch
Anomy sanitizer fails to recognise the content-transfer-encoding of
certain emails (generated by Outlook 2003?). E.g. the messages contain:
Content-Transfer-Encoding:quoted-printable
The reason is that sanitizer expects a space after the ':' in the
header, but in the case of these messages it is omitted (which I think
is perfectly ok by the standards). The attached patch fixes this.
Regards,
Kevin.
diff -urN sanitizer-1.76/bin/Anomy/MIMEStream.pm sanitizer-1.76+content-fix/bin/Anomy/MIMEStream.pm
--- sanitizer-1.76/bin/Anomy/MIMEStream.pm 2006-01-02 13:48:57.000000000 +1030
+++ sanitizer-1.76+content-fix/bin/Anomy/MIMEStream.pm 2007-02-07 08:38:46.000000000 +1030
@@ -343,7 +343,7 @@
# poorly written viruses.
$headers->{$header} .= " ".$line;
}
- elsif ($line =~ /^([^\s]+):\s(.*)$/)
+ elsif ($line =~ /^([^\s]+):\s*(.*)$/)
{
$header = lc($1);
$headers->{$header} .= $2.$LF;