mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Fix to consider it a bad request only if there is one
This commit is contained in:
@ -1407,7 +1407,7 @@ elsif (!$reqline && $checked_timeout > 1) {
|
||||
print DEBUG "handle_request: rejecting empty request\n";
|
||||
return 0;
|
||||
}
|
||||
elsif ($reqline !~ /^(\S+)\s+(.*)\s+HTTP\/1\..$/) {
|
||||
elsif ($reqline && $reqline !~ /^(\S+)\s+(.*)\s+HTTP\/1\..$/) {
|
||||
&http_error(400, "Bad Request");
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user