From: Joey Hess Date: Fri, 21 May 2010 17:39:07 +0000 (-0400) Subject: disable warnings when evaling setup files X-Git-Tag: 3.20100610~77 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/6472302b8dc1fd0edd76ab3ac6d2e1f224e3cc40?hp=29cd4616fbdf25b7a4042376483f58d658c78140 disable warnings when evaling setup files In particular, perl warns if a qw{} contains a #, but openids can. If the setup file has 'use warnings', it will turn warning messages back on, so it seems reasonable to squelch them by default. --- diff --git a/IkiWiki/Setup.pm b/IkiWiki/Setup.pm index 06102058b..ee5be95d2 100644 --- a/IkiWiki/Setup.pm +++ b/IkiWiki/Setup.pm @@ -33,6 +33,7 @@ sub load ($;$) { if ($1) { error sprintf(gettext("cannot load %s in safe mode"), $file) if $safemode; + no warnings; eval IkiWiki::possibly_foolish_untaint($content); error("$file: ".$@) if $@; }