mirror of
https://github.com/webmin/webmin.git
synced 2026-02-28 08:22:30 +00:00
Max line length of only 10k? This is 2012
This commit is contained in:
@@ -2892,7 +2892,7 @@ sub read_line
|
||||
local ($nowait, $nolimit) = @_;
|
||||
local($idx, $more, $rv);
|
||||
while(($idx = index($main::read_buffer, "\n")) < 0) {
|
||||
if (length($main::read_buffer) > 10000 && !$nolimit) {
|
||||
if (length($main::read_buffer) > 100000 && !$nolimit) {
|
||||
&http_error(414, "Request too long",
|
||||
"Received excessive line <pre>$main::read_buffer</pre>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user