]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Setup.pm
add blog post template
[ikiwiki.git] / IkiWiki / Setup.pm
index 63659ce2e03e7147be14063bf13e24278ddab94f..0c8ad9208d50768d8f2eb37473ddc2f5d85187f4 100644 (file)
@@ -9,8 +9,11 @@ sub setup () { # {{{
        my $setup=possibly_foolish_untaint($config{setup});
        delete $config{setup};
        open (IN, $setup) || error("read $setup: $!\n");
        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;
 
        ($code)=$code=~/(.*)/s;
        close IN;