mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Minor patch (drei)
This commit is contained in:
parent
47537aa27b
commit
fa2572f58a
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
||||||
from thirdparty import six
|
from thirdparty import six
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.3.5.46"
|
VERSION = "1.3.5.47"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
26
thirdparty/clientform/clientform.py
vendored
26
thirdparty/clientform/clientform.py
vendored
|
@ -594,8 +594,8 @@ class _AbstractFormParser:
|
||||||
|
|
||||||
self._option = {}
|
self._option = {}
|
||||||
self._option.update(d)
|
self._option.update(d)
|
||||||
if (self._optgroup and self._optgroup.has_key("disabled") and
|
if (self._optgroup and "disabled" in self._optgroup and
|
||||||
not self._option.has_key("disabled")):
|
"disabled" not in self._option):
|
||||||
self._option["disabled"] = None
|
self._option["disabled"] = None
|
||||||
|
|
||||||
def _end_option(self):
|
def _end_option(self):
|
||||||
|
@ -605,9 +605,9 @@ class _AbstractFormParser:
|
||||||
|
|
||||||
contents = self._option.get("contents", "").strip()
|
contents = self._option.get("contents", "").strip()
|
||||||
self._option["contents"] = contents
|
self._option["contents"] = contents
|
||||||
if not self._option.has_key("value"):
|
if "value" not in self._option:
|
||||||
self._option["value"] = contents
|
self._option["value"] = contents
|
||||||
if not self._option.has_key("label"):
|
if "label" not in self._option:
|
||||||
self._option["label"] = contents
|
self._option["label"] = contents
|
||||||
# stuff dict of SELECT HTML attrs into a special private key
|
# stuff dict of SELECT HTML attrs into a special private key
|
||||||
# (gets deleted again later)
|
# (gets deleted again later)
|
||||||
|
@ -695,7 +695,7 @@ class _AbstractFormParser:
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
|
|
||||||
if data and not map.has_key(key):
|
if data and key not in map:
|
||||||
# according to
|
# according to
|
||||||
# http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.1 line break
|
# http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.1 line break
|
||||||
# immediately after start tags or immediately before end tags must
|
# immediately after start tags or immediately before end tags must
|
||||||
|
@ -1624,7 +1624,7 @@ class Item:
|
||||||
"_labels": label and [label] or [],
|
"_labels": label and [label] or [],
|
||||||
"attrs": attrs,
|
"attrs": attrs,
|
||||||
"_control": control,
|
"_control": control,
|
||||||
"disabled": attrs.has_key("disabled"),
|
"disabled": "disabled" in attrs,
|
||||||
"_selected": False,
|
"_selected": False,
|
||||||
"id": attrs.get("id"),
|
"id": attrs.get("id"),
|
||||||
"_index": index,
|
"_index": index,
|
||||||
|
@ -2292,7 +2292,7 @@ class RadioControl(ListControl):
|
||||||
called_as_base_class=True, index=index)
|
called_as_base_class=True, index=index)
|
||||||
self.__dict__["multiple"] = False
|
self.__dict__["multiple"] = False
|
||||||
o = Item(self, attrs, index)
|
o = Item(self, attrs, index)
|
||||||
o.__dict__["_selected"] = attrs.has_key("checked")
|
o.__dict__["_selected"] = "checked" in attrs
|
||||||
|
|
||||||
def fixup(self):
|
def fixup(self):
|
||||||
ListControl.fixup(self)
|
ListControl.fixup(self)
|
||||||
|
@ -2325,7 +2325,7 @@ class CheckboxControl(ListControl):
|
||||||
called_as_base_class=True, index=index)
|
called_as_base_class=True, index=index)
|
||||||
self.__dict__["multiple"] = True
|
self.__dict__["multiple"] = True
|
||||||
o = Item(self, attrs, index)
|
o = Item(self, attrs, index)
|
||||||
o.__dict__["_selected"] = attrs.has_key("checked")
|
o.__dict__["_selected"] = "checked" in attrs
|
||||||
|
|
||||||
def get_labels(self):
|
def get_labels(self):
|
||||||
return []
|
return []
|
||||||
|
@ -2393,7 +2393,7 @@ class SelectControl(ListControl):
|
||||||
self.attrs = attrs["__select"].copy()
|
self.attrs = attrs["__select"].copy()
|
||||||
self.__dict__["_label"] = _get_label(self.attrs)
|
self.__dict__["_label"] = _get_label(self.attrs)
|
||||||
self.__dict__["id"] = self.attrs.get("id")
|
self.__dict__["id"] = self.attrs.get("id")
|
||||||
self.__dict__["multiple"] = self.attrs.has_key("multiple")
|
self.__dict__["multiple"] = "multiple" in self.attrs
|
||||||
# the majority of the contents, label, and value dance already happened
|
# the majority of the contents, label, and value dance already happened
|
||||||
contents = attrs.get("contents")
|
contents = attrs.get("contents")
|
||||||
attrs = attrs.copy()
|
attrs = attrs.copy()
|
||||||
|
@ -2401,12 +2401,12 @@ class SelectControl(ListControl):
|
||||||
|
|
||||||
ListControl.__init__(self, type, name, self.attrs, select_default,
|
ListControl.__init__(self, type, name, self.attrs, select_default,
|
||||||
called_as_base_class=True, index=index)
|
called_as_base_class=True, index=index)
|
||||||
self.disabled = self.attrs.has_key("disabled")
|
self.disabled = "disabled" in self.attrs
|
||||||
self.readonly = self.attrs.has_key("readonly")
|
self.readonly = "readonly" in self.attrs
|
||||||
if attrs.has_key("value"):
|
if "value" in attrs:
|
||||||
# otherwise it is a marker 'select started' token
|
# otherwise it is a marker 'select started' token
|
||||||
o = Item(self, attrs, index)
|
o = Item(self, attrs, index)
|
||||||
o.__dict__["_selected"] = attrs.has_key("selected")
|
o.__dict__["_selected"] = "selected" in attrs
|
||||||
# add 'label' label and contents label, if different. If both are
|
# add 'label' label and contents label, if different. If both are
|
||||||
# provided, the 'label' label is used for display in HTML
|
# provided, the 'label' label is used for display in HTML
|
||||||
# 4.0-compliant browsers (and any lower spec? not sure) while the
|
# 4.0-compliant browsers (and any lower spec? not sure) while the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user