mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-20 18:54:02 +00:00
improvement for lots of multiple-selection forms (now by default the first one is selected - till now it was left unchecked which lead to blank get/post data for the whole form)
This commit is contained in:
parent
c3b54cc222
commit
cd7e4f5afc
2 changed files with 5 additions and 2 deletions
|
|
@ -2754,7 +2754,7 @@ class HTMLForm:
|
|||
# Initialisation. Use ParseResponse / ParseFile instead.
|
||||
|
||||
def __init__(self, action, method="GET",
|
||||
enctype="application/x-www-form-urlencoded",
|
||||
enctype=None,
|
||||
name=None, attrs=None,
|
||||
request_class=urllib2.Request,
|
||||
forms=None, labels=None, id_to_labels=None,
|
||||
|
|
@ -2772,7 +2772,7 @@ class HTMLForm:
|
|||
"""
|
||||
self.action = action
|
||||
self.method = method
|
||||
self.enctype = enctype
|
||||
self.enctype = enctype or "application/x-www-form-urlencoded"
|
||||
self.name = name
|
||||
if attrs is not None:
|
||||
self.attrs = attrs.copy()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue