You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2008/03/03 15:47:02 UTC

svn commit: r633106 - /spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi

Author: jm
Date: Mon Mar  3 06:47:02 2008
New Revision: 633106

URL: http://svn.apache.org/viewvc?rev=633106&view=rev
Log:
force ruleqa app to use XML::Parser from XML::Simple, to work around horrible UTF-8/xml bug in XML::SAX. also should be much faster, bonus

Modified:
    spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi

Modified: spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi?rev=633106&r1=633105&r2=633106&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi (original)
+++ spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi Mon Mar  3 06:47:02 2008
@@ -41,6 +41,11 @@
 use Time::Local;
 use POSIX qw();
 
+# require XML::Parser; it avoids the awful "balloon to 4GB of RAM in an
+# infinite loop" XML/UTF-8 bug that Daryl found
+use XML::Parser;
+$XML::Simple::PREFERRED_PARSER = "XML::Parser";
+
 # daterevs -- e.g. "20060429/r239832-r" -- are aligned to just before
 # the time of day when the mass-check tagging occurs; that's 0850 GMT,
 # so align the daterev to 0800 GMT.