]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
header.pl: Increase maximum allowed size of hashes.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 3 Jan 2015 19:22:05 +0000 (20:22 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 3 Jan 2015 19:22:05 +0000 (20:22 +0100)
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.

config/cfgroot/header.pl

index cf895bf246a01946ab4930b62bc329719d36bc0e..974c4d8b22458ab33d1a65044858804f040af9cc 100644 (file)
@@ -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;
        }