diff options
Diffstat (limited to 'IkiWiki/Setup.pm')
-rw-r--r-- | IkiWiki/Setup.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/IkiWiki/Setup.pm b/IkiWiki/Setup.pm index 63659ce2e..0c8ad9208 100644 --- a/IkiWiki/Setup.pm +++ b/IkiWiki/Setup.pm @@ -9,8 +9,11 @@ sub setup () { # {{{ my $setup=possibly_foolish_untaint($config{setup}); delete $config{setup}; open (IN, $setup) || error("read $setup: $!\n"); - local $/=undef; - my $code=<IN>; + my $code; + { + local $/=undef; + $code=<IN>; + } ($code)=$code=~/(.*)/s; close IN; |