From: Eric Bollengier Date: Sat, 22 Sep 2012 07:54:55 +0000 (+0200) Subject: bweb: Set POST_MAX and DISABLE_UPLOADS as advised in CGI module documentation X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=20e4b0055ae8f5bdd1db825ea3c7b663bc4baa6a;p=bacula%2Fbacula bweb: Set POST_MAX and DISABLE_UPLOADS as advised in CGI module documentation --- diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index cffcf814b4..b1b09908f6 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -231,6 +231,8 @@ use base q/Bweb::Gui/; =cut use CGI; +$CGI::POST_MAX=102400; # Limit post to 100kB +$CGI::DISABLE_UPLOADS=0; # Allow file uploads =head1 PACKAGE VARIABLE