mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Relax http.parse_form to allow forms without an action
Patch from nnposter: http://seclists.org/nmap-dev/2014/q3/384
This commit is contained in:
@@ -134,7 +134,7 @@ action = function(host, port)
|
||||
form = http.parse_form(form)
|
||||
|
||||
local resistant = false
|
||||
if form then
|
||||
if form and form.action then
|
||||
for _, field in ipairs(form['fields']) do
|
||||
|
||||
-- First we check the field's name.
|
||||
|
||||
Reference in New Issue
Block a user