[otrs-cvs] otrs/Kernel/cpan-lib/MIME Parser.pm,1.15,1.16
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/otrs/Kernel/cpan-lib/MIME
In directory lancelot:/tmp/cvs-serv5438/Kernel/cpan-lib/MIME
Modified Files:
Parser.pm
Log Message:
- 2013-02-08 Added Patch/Workaround for CPAN MIME::Parser v5.503 that prevent the trimming of empty lines that lead to inconsistencies between signed and actual email contents.
Author: cr
Index: Parser.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/cpan-lib/MIME/Parser.pm,v
retrieving revision 1.15
retrieving revision 1.16
diff -2 -u -d -r1.15 -r1.16
--- Parser.pm 29 Jan 2013 14:37:18 -0000 1.15
+++ Parser.pm 8 Feb 2013 23:11:58 -0000 1.16
@@ -560,5 +560,24 @@
@saved = ('');
} else {
- $data =~ s/[\r\n]\z//;
+# ---
+# OTRS
+# ---
+# 2013-02-08 added patch/workaround for "bug" in MIME::Parser (v5.503, v5.504 maybe also higher)
+# deleting empty lines (\r\n) in the preamble lead into inconsistent signed content:
+# e.g. crypt object will sign:
+# =========================================
+# This is a multi-part message in MIME format...
+#
+# ------------=_1360258429-5733-0
+# =========================================
+#
+# while the mail will contain:
+# =========================================
+# This is a multi-part message in MIME format...
+# ------------=_1360258429-5733-0
+# =========================================
+#
+# by commenting the following line the intermediate empty line will be preserved
+# $data =~ s/[\r\n]\z//;
@saved = split(/^/, $data);
}
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log