From 781cea86e122e2e7f59f605833a2ef3cb630997d Mon Sep 17 00:00:00 2001 From: kuriyama Date: Thu, 6 Jun 2002 01:52:19 +0000 Subject: Apply a patch to fix some problems reported on bugtraq. White space nits in original patch are ignored. References: http://online.securityfocus.com/archive/1/275282/2002-06-01/2002-06-07/0 Obtained from: http://www.roaringpenguin.com/mimedefang/mime-tools-patch.txt Reported by: "Mike Jakubik" --- mail/p5-MIME-Tools/Makefile | 1 + mail/p5-MIME-Tools/files/patch-ParamVal.pm | 114 +++++++++++++++++++++++++++++ mail/p5-MIME-Tools/files/patch-Words.pm | 11 +++ 3 files changed, 126 insertions(+) create mode 100644 mail/p5-MIME-Tools/files/patch-ParamVal.pm create mode 100644 mail/p5-MIME-Tools/files/patch-Words.pm (limited to 'mail') diff --git a/mail/p5-MIME-Tools/Makefile b/mail/p5-MIME-Tools/Makefile index 935bbe3ee519..ea373790a0d8 100644 --- a/mail/p5-MIME-Tools/Makefile +++ b/mail/p5-MIME-Tools/Makefile @@ -7,6 +7,7 @@ PORTNAME= p5-MIME-Tools PORTVERSION= 5.411a +PORTREVISION= 1 CATEGORIES= mail perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= MIME diff --git a/mail/p5-MIME-Tools/files/patch-ParamVal.pm b/mail/p5-MIME-Tools/files/patch-ParamVal.pm new file mode 100644 index 000000000000..afc85edda148 --- /dev/null +++ b/mail/p5-MIME-Tools/files/patch-ParamVal.pm @@ -0,0 +1,114 @@ +--- lib/MIME/Field/ParamVal.pm.orig Sun Nov 5 04:54:49 2000 ++++ lib/MIME/Field/ParamVal.pm Thu Jun 6 10:15:15 2002 +@@ -100,6 +100,9 @@ + # token = 1* + # + my $TSPECIAL = '()<>@,;:\ $b } keys %{$rfc2231params{$param}}) { ++ $params{$param} .= $rfc2231params{$param}{$part}; ++ } + debug " field param <$param> = <$params{$param}>"; + } + diff --git a/mail/p5-MIME-Tools/files/patch-Words.pm b/mail/p5-MIME-Tools/files/patch-Words.pm new file mode 100644 index 000000000000..d1fb41ea9759 --- /dev/null +++ b/mail/p5-MIME-Tools/files/patch-Words.pm @@ -0,0 +1,11 @@ +--- lib/MIME/Words.pm.orig Sat Nov 11 01:45:12 2000 ++++ lib/MIME/Words.pm Thu Jun 6 10:15:15 2002 +@@ -186,7 +186,7 @@ + $@ = ''; ### error-return + + ### Collapse boundaries between adjacent encoded words: +- $encstr =~ s{(\?\=)\r?\n[ \t](\=\?)}{$1$2}gs; ++ $encstr =~ s{(\?\=)\s*(\=\?)}{$1$2}gs; + pos($encstr) = 0; + ### print STDOUT "ENC = [", $encstr, "]\n"; + -- cgit