mirror of
https://github.com/nmap/nmap.git
synced 2025-12-20 14:39:02 +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:
@@ -1914,8 +1914,6 @@ function parse_form(form)
|
||||
local form_action = string.match(form, '[Aa][Cc][Tt][Ii][Oo][Nn]=[\'"](.-)[\'"]')
|
||||
if form_action then
|
||||
parsed["action"] = form_action
|
||||
else
|
||||
return nil
|
||||
end
|
||||
|
||||
-- determine if the form is using get or post
|
||||
|
||||
Reference in New Issue
Block a user