mhonarc-commits
[Top] [All Lists]

CVS: mhonarc/MHonArc/lib mhutil.pl,2.33,2.34

2011-01-02 02:42:35
Update of mhonarc/MHonArc/lib
Modified Files:
	mhutil.pl 
Log Message:
Bug #20142: Tokenize module does not translate quoted pairs
("\" CHAR) when tokenizing.  For now, it will stay they way,
so mhonarc::extract_email_name() modified to unquote chars in
quoted-string or comment token.

Also, while examining tokenizer code, noticed bug in parsing
comments: quoted "\(" or "\)" not taken into account, which
could lead to improper tokenization.  This has been fixed.


======================================================================
FILE: mhonarc/MHonArc/lib/mhutil.pl
<http://www.mhonarc.org/cgi-bin/viewcvs.cgi/*checkout*/mhonarc/MHonArc/lib/mhutil.pl?rev=2.34>

<http://www.mhonarc.org/cgi-bin/viewcvs.cgi/mhonarc/MHonArc/lib/mhutil.pl.diff?r1=2.33&r2=2.34&diff_format=h>
--- mhutil.pl	3 May 2009 20:11:27 -0000	2.33
+++ mhutil.pl	2 Jan 2011 08:42:32 -0000	2.34
@@ -180,8 +180,10 @@
         if ($tok =~ /^"/) {   # Quoted string
             $tok =~ s/^"//;  $tok =~ s/"$//;
+            $tok =~ s/\\(.)/$1/g;
             return $tok;
         }
         if ($tok =~ /^\(/) {  # Comment
             $tok =~ s/^\(//; $tok =~ s/\)$//;
+            $tok =~ s/\\(.)/$1/g;
             return $tok;
         }

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-COMMITS