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 2005/04/25 04:05:38 UTC

svn commit: r164515 - /spamassassin/branches/3.0/lib/Mail/SpamAssassin/Conf/Parser.pm

Author: felicity
Date: Sun Apr 24 19:05:38 2005
New Revision: 164515

URL: http://svn.apache.org/viewcvs?rev=164515&view=rev
Log:
bug 4192: require_version wasn't allowed inside if config blocks.

Modified:
    spamassassin/branches/3.0/lib/Mail/SpamAssassin/Conf/Parser.pm

Modified: spamassassin/branches/3.0/lib/Mail/SpamAssassin/Conf/Parser.pm
URL: http://svn.apache.org/viewcvs/spamassassin/branches/3.0/lib/Mail/SpamAssassin/Conf/Parser.pm?rev=164515&r1=164514&r2=164515&view=diff
==============================================================================
--- spamassassin/branches/3.0/lib/Mail/SpamAssassin/Conf/Parser.pm (original)
+++ spamassassin/branches/3.0/lib/Mail/SpamAssassin/Conf/Parser.pm Sun Apr 24 19:05:38 2005
@@ -311,6 +311,9 @@
       next;
     }
 
+    # preprocessing? skip all other commands
+    next if $skip_parsing;
+
     if ($key eq 'require_version') {
       # if it wasn't replaced during install, assume current version ...
       next if ($value eq "\@\@VERSION\@\@");
@@ -336,9 +339,6 @@
       }
       next;
     }
-
-    # preprocessing? skip all other commands
-    next if $skip_parsing;
 
     my $cmd = $lut_frequent->{$key}; # check the frequent command set
     if (!$cmd) {