Re: Multi-Line Subject lines being truncated ...

Michael Yount <[email protected]> Fri, 15 Sep 2006 20:04:59 -0700
Newsgroups gmane.mail.majordomo.majordomo2.devel
Message-ID <[email protected]>
Alvaro Herrera wrote:
> Note that the point here is that the archives are getting a mail with a
> subject that is shorter than what Bruce Momjian has on his sent-mail
> folder.  The reply to that message contains more pointers to the
> archives mbox, etc (that message haven't made it to the archives at this
> time ... it will be there shortly).  Note that the very same thread
> where this is being discussed suddenly has a truncated subject at a
> point.
>   
Does the following patch solve the problem?

Michael-

-- lib/Mj/Util.pm      30 Aug 2004 03:01:13 -0000      1.48
+++ lib/Mj/Util.pm      16 Sep 2006 02:58:17 -0000
@@ -617,9 +617,9 @@
   # Hack; untaint things.  That's why we're running inside a safe
   # compartment. XXX Try it without the untainting; it has a speed penalty.
   # Routines that need it can untaint as appropriate before calling.
-  $_ =~ /(.*)/;
+  $_ =~ /(.*)/s;
   $_ = $1;
-  $re =~ /(.*)/;
+  $re =~ /(.*)/s;
   $re = $1;

   if ($arr) {