From: Joey Hess Date: Sun, 24 Feb 2008 21:01:10 +0000 (-0500) Subject: if NOTAINT is not set, disable tainting X-Git-Tag: 2.40~60 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2a802c1518d2ef9b4340961c173b5b2d111c499a;p=ikiwiki.git if NOTAINT is not set, disable tainting --- diff --git a/pm_filter b/pm_filter index a80ce04f0..287adc376 100755 --- a/pm_filter +++ b/pm_filter @@ -20,6 +20,6 @@ elsif (/^use lib/) { $_="use lib '$libdir';\n"; } } -elsif ($. == 1 && $ENV{NOTAINT} && m{^(#!/usr/bin/perl) -T$}) { +elsif ($. == 1 && ($ENV{NOTAINT} || ! exists $ENV{NOTAINT}) && m{^(#!/usr/bin/perl) -T$}) { $_=qq{$1\n}; }