fix broken example config file and detect this breakage

master
joey 2006-04-20 13:34:11 +00:00
parent 2469114dc5
commit 958468b088
2 changed files with 6 additions and 5 deletions

View File

@ -19,6 +19,9 @@ sub gen_wrapper () { #{{{
error("cannot create a wrapper that uses a setup file");
}
my $wrapper=possibly_foolish_untaint($config{wrapper});
if (! defined $wrapper || ! length $wrapper) {
error("wrapper filename not specified");
}
delete $config{wrapper};
my @envsave;

View File

@ -34,11 +34,9 @@ use IkiWiki::Setup::Standard {
},
#{
# # The cgi wrapper.
# cgiwrapper => {
# cgi => 1,
# wrapper => "/var/www/wiki/ikiwiki.cgi",
# wrappermode => "06755",
# },
# cgi => 1,
# wrapper => "/var/www/wiki/ikiwiki.cgi",
# wrappermode => "06755",
#},
],