You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2007/01/31 17:29:58 UTC

svn commit: r501886 - /spamassassin/rules/trunk/sandbox/felicity/70_other.cf

Author: felicity
Date: Wed Jan 31 08:29:57 2007
New Revision: 501886

URL: http://svn.apache.org/viewvc?view=rev&rev=501886
Log:
work around FP from DoS

Modified:
    spamassassin/rules/trunk/sandbox/felicity/70_other.cf

Modified: spamassassin/rules/trunk/sandbox/felicity/70_other.cf
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/felicity/70_other.cf?view=diff&rev=501886&r1=501885&r2=501886
==============================================================================
--- spamassassin/rules/trunk/sandbox/felicity/70_other.cf (original)
+++ spamassassin/rules/trunk/sandbox/felicity/70_other.cf Wed Jan 31 08:29:57 2007
@@ -23,8 +23,8 @@
 #  5.261   6.1703   0.4419    0.933   0.00    0.00  INVALID_DATE
 # I found a few whitespace issues in the original RE, and I wanted to avoid my
 # two common, but yes invalid, date headers.  specifically / \(GMT\)$/ and
-# / 0000 GMT$/.
-header T_INVALID_DATE		Date !~ /^\s*(?:(?i:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?\s*(?:[12]\d|3[01]|0?[1-9])\s+(?i:Jan|Feb|Ma[ry]|Apr|Ju[nl]|Aug|Sep|Oct|Nov|Dec)\s+(?:19[7-9]\d|2\d{3})\s+(?:[01]?\d|2[0-3])\:[0-5]\d(?::(?:[0-5]\d|60))?(?:\s+[AP]M)?(?:\s+(?:[+-][0-9]{4}|UT|[A-Z]{2,3}T|0000 GMT))?(?:\s*\(.*\))?\s*$/ [if-unset: Wed, 31 Jul 2002 16:41:57 +0200]
+# / 0000 GMT$/.  dos has / "GMT"$/
+header T_INVALID_DATE		Date !~ /^\s*(?:(?i:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?\s*(?:[12]\d|3[01]|0?[1-9])\s+(?i:Jan|Feb|Ma[ry]|Apr|Ju[nl]|Aug|Sep|Oct|Nov|Dec)\s+(?:19[7-9]\d|2\d{3})\s+(?:[01]?\d|2[0-3])\:[0-5]\d(?::(?:[0-5]\d|60))?(?:\s+[AP]M)?(?:\s+(?:[+-][0-9]{4}|UT|[A-Z]{2,3}T|0000 GMT|"GMT"))?(?:\s*\(.*\))?\s*$/ [if-unset: Wed, 31 Jul 2002 16:41:57 +0200]
 
 #  0.527   0.6192   0.0178    0.972   0.80    0.00  TVD_SILLY_URI_OBFU3
 #  0.256   0.3023   0.0000    1.000   0.73    0.00  TVD_SILLY_URI_OBFU