From: Stefan Schantl Date: Sat, 3 Jan 2015 19:22:05 +0000 (+0100) Subject: header.pl: Increase maximum allowed size of hashes. X-Git-Tag: v2.17-core91~128^2~6^2~12^2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc26ba71a193700177d8bc118e79b050964562f7;p=people%2Fstevee%2Fipfire-2.x.git header.pl: Increase maximum allowed size of hashes. The "getcgihash" function only allowed hashes with a maximum size of 512kb, which was to small for the new geoip-block.cgi. As a result of this some form data were cut-off and couldn't be processed correctly. --- diff --git a/config/cfgroot/header.pl b/config/cfgroot/header.pl index cf895bf246..974c4d8b22 100644 --- a/config/cfgroot/header.pl +++ b/config/cfgroot/header.pl @@ -263,7 +263,7 @@ sub getcgihash { return if ($ENV{'REQUEST_METHOD'} ne 'POST'); if (!$params->{'wantfile'}) { $CGI::DISABLE_UPLOADS = 1; - $CGI::POST_MAX = 512 * 1024; + $CGI::POST_MAX = 1024 * 1024; } else { $CGI::POST_MAX = 10 * 1024 * 1024; }