spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From felic...@apache.org
Subject svn commit: r156298 - spamassassin/trunk/lib/Mail/SpamAssassin/Util.pm
Date Sun, 06 Mar 2005 08:32:02 GMT
Author: felicity
Date: Sun Mar  6 00:31:59 2005
New Revision: 156298

URL: http://svn.apache.org/viewcvs?view=rev&rev=156298
Log:
bug 3937: Windows-esque platforms tend to have their directories always world-writable, which
means PATH gets set to null during our taint mode environment cleansing.  as world-writable
dirs on these platforms don't seem to have taint issues, we can just skip that step appropriately

Modified:
    spamassassin/trunk/lib/Mail/SpamAssassin/Util.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Util.pm
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/lib/Mail/SpamAssassin/Util.pm?view=diff&r1=156297&r2=156298
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Util.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Util.pm Sun Mar  6 00:31:59 2005
@@ -96,6 +96,11 @@
 
     dbg("util: running in taint mode, removing unsafe env vars, and resetting PATH");
 
+    if (RUNNING_ON_WINDOWS) {
+      dbg("util: running on a Windows-esque platform, skipping PATH cleaning");
+      return;
+    }
+
     delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
 
     # Go through and clean the PATH out



Mime
View raw message