aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-21 13:39:07 -0400
committerJoey Hess <joey@kitenet.net>2010-05-21 13:39:07 -0400
commit6472302b8dc1fd0edd76ab3ac6d2e1f224e3cc40 (patch)
tree6a3873f6a87b4ee1ba46365c98a2b150cc307ead /IkiWiki
parent29cd4616fbdf25b7a4042376483f58d658c78140 (diff)
downloadikiwiki-6472302b8dc1fd0edd76ab3ac6d2e1f224e3cc40.tar
ikiwiki-6472302b8dc1fd0edd76ab3ac6d2e1f224e3cc40.tar.gz
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.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Setup.pm1
1 files changed, 1 insertions, 0 deletions
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 $@;
}