X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/8e43bc0e0fef57a0770ef69e9aac845ed6078dfa..0ffcafc1305de5ec242f3f0835064682d408c3d0:/IkiWiki/CGI.pm diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 43986789a..07e92322f 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -281,7 +281,6 @@ sub cgi_editpage ($$) { #{{{ eval q{use CGI::FormBuilder}; error($@) if $@; my $form = CGI::FormBuilder->new( - title => "editpage", fields => \@fields, charset => "utf-8", method => 'POST', @@ -304,7 +303,7 @@ sub cgi_editpage ($$) { #{{{ # This untaint is safe because titlepage removes any problematic # characters. - my ($page)=$form->field('page'); + my $page=$form->field('page'); $page=titlepage(possibly_foolish_untaint($page)); if (! defined $page || ! length $page || file_pruned($page, $config{srcdir}) || $page=~/^\//) { @@ -669,7 +668,7 @@ sub cgi (;$$) { #{{{ eval q{use CGI}; error($@) if $@; - $CGI::DISABLE_UPLOADS=1; + $CGI::DISABLE_UPLOADS=$config{cgi_disable_uploads}; if (! $q) { binmode(STDIN);