]> git.sur5r.net Git - bacula/bacula/commitdiff
bweb: Set POST_MAX and DISABLE_UPLOADS as advised in CGI module documentation
authorEric Bollengier <eric@baculasystems.com>
Sat, 22 Sep 2012 07:54:55 +0000 (09:54 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:02 +0000 (14:51 +0200)
gui/bweb/lib/Bweb.pm

index cffcf814b4ad91aed772190bf56531e9b1565704..b1b09908f6c73c0c80fd2ef94db802a06e7e8793 100644 (file)
@@ -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