From 20e4b0055ae8f5bdd1db825ea3c7b663bc4baa6a Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 22 Sep 2012 09:54:55 +0200 Subject: [PATCH] bweb: Set POST_MAX and DISABLE_UPLOADS as advised in CGI module documentation --- gui/bweb/lib/Bweb.pm | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5