This allows plugins that want to enable uploads to do so by changing the
value of $CGI::DISABLE_UPLOADS at some point before the cgi hook is run.
use IkiWiki::UserInfo;
use open qw{:utf8 :std};
use Encode;
use IkiWiki::UserInfo;
use open qw{:utf8 :std};
use Encode;
+use CGI;
+$CGI::DISABLE_UPLOADS=1;
my $q=shift;
my $session=shift;
my $q=shift;
my $session=shift;
- eval q{use CGI};
- error($@) if $@;
- $CGI::DISABLE_UPLOADS=1;
-
if (! $q) {
binmode(STDIN);
$q=CGI->new;
if (! $q) {
binmode(STDIN);
$q=CGI->new;