X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/e1d9747be167c834c5b1b98331f40dc98fc46c93..0f8ea7ecca27a9e73af5c515f637f543912c7076:/IkiWiki/CGI.pm diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 2c4590bab..0d010b115 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -6,6 +6,8 @@ use IkiWiki; use IkiWiki::UserInfo; use open qw{:utf8 :std}; use Encode; +use CGI; +$CGI::DISABLE_UPLOADS=1; package IkiWiki; @@ -666,10 +668,6 @@ sub cgi (;$$) { #{{{ my $q=shift; my $session=shift; - eval q{use CGI}; - error($@) if $@; - $CGI::DISABLE_UPLOADS=1; - if (! $q) { binmode(STDIN); $q=CGI->new;