You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2018/10/26 12:33:14 UTC

svn commit: r1844900 - in /spamassassin: branches/3.4/sa-update.raw trunk/sa-update.raw

Author: hege
Date: Fri Oct 26 12:33:14 2018
New Revision: 1844900

URL: http://svn.apache.org/viewvc?rev=1844900&view=rev
Log:
Ignore dns_servers in sa-update files, paranoid check

Modified:
    spamassassin/branches/3.4/sa-update.raw
    spamassassin/trunk/sa-update.raw

Modified: spamassassin/branches/3.4/sa-update.raw
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/sa-update.raw?rev=1844900&r1=1844899&r2=1844900&view=diff
==============================================================================
--- spamassassin/branches/3.4/sa-update.raw (original)
+++ spamassassin/branches/3.4/sa-update.raw Fri Oct 26 12:33:14 2018
@@ -1314,6 +1314,9 @@ sub taint_safe_archive_extract {
           $content =~ s{^\s*((?:load|try)plugin|bayes_store_module|auto_whitelist_factory)\b}
             {#(commented by sa-update, no --allowplugins switch specified)# $1}gmx;
         }
+
+        # other stuff never allowed for safety
+        $content =~ s/^\s*(dns_servers)/#(commented by sa-update, not allowed)# $1/gm;
       }
 
       print OUT $content

Modified: spamassassin/trunk/sa-update.raw
URL: http://svn.apache.org/viewvc/spamassassin/trunk/sa-update.raw?rev=1844900&r1=1844899&r2=1844900&view=diff
==============================================================================
--- spamassassin/trunk/sa-update.raw (original)
+++ spamassassin/trunk/sa-update.raw Fri Oct 26 12:33:14 2018
@@ -1314,6 +1314,9 @@ sub taint_safe_archive_extract {
           $content =~ s{^\s*((?:load|try)plugin|bayes_store_module|auto_whitelist_factory)\b}
             {#(commented by sa-update, no --allowplugins switch specified)# $1}gmx;
         }
+
+        # other stuff never allowed for safety
+        $content =~ s/^\s*(dns_servers)/#(commented by sa-update, not allowed)# $1/gm;
       }
 
       print OUT $content