]> xenbits.xensource.com Git - people/aperard/emesinae.git/commitdiff
CGI: Limit the amount of P{OST data we accept.
authorIan Campbell <ian.campbell@citrix.com>
Thu, 23 May 2013 13:27:59 +0000 (14:27 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 23 May 2013 13:27:59 +0000 (14:27 +0100)
CGI/bug.pl
CGI/bugs.pl

index 143a158aee41eb8eef4f00aee251667251ffbc28..af0e02001d738f5e31ea6e8297cbf550e69e15ea 100755 (executable)
@@ -7,6 +7,8 @@ use POSIX qw/strftime/;
 
 use CGI qw/:standard/;
 use CGI::Carp qw(fatalsToBrowser);
+$CGI::POST_MAX=1024 * 100; # max 100K posts
+$CGI::DISABLE_UPLOADS = 1; # no uploads
 
 use URI::Escape;
 
index 1f719636930ae0f8aa736655df06ba5776c5e86b..c47f6f8f5d05ce813824fde4b650854440b594b9 100755 (executable)
@@ -5,6 +5,8 @@ use warnings;
 
 use CGI qw/:standard/;
 use CGI::Carp qw(fatalsToBrowser);
+$CGI::POST_MAX=1024 * 100; # max 100K posts
+$CGI::DISABLE_UPLOADS = 1; # no uploads
 
 use Emesinae::Bug;
 use Emesinae::Common;