MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / do_button

Method do_button

thirdparty/clientform/clientform.py:714–730  ·  view source on GitHub ↗
(self, attrs)

Source from the content-addressed store, hash-verified

712 map[key] = (map[key].decode("utf8", "replace") if isinstance(map[key], six.binary_type) else map[key]) + data
713
714 def do_button(self, attrs):
715 debug("%s", attrs)
716 d = {}
717 d["type"] = "submit" # default
718 for key, val in attrs:
719 d[key] = self.unescape_attr_if_required(val)
720 controls = self._current_form[2]
721
722 type = d["type"]
723 name = d.get("name")
724 # we don't want to lose information, so use a type string that
725 # doesn't clash with INPUT TYPE={SUBMIT,RESET,BUTTON}
726 # e.g. type for BUTTON/RESET is "resetbutton"
727 # (type for INPUT/RESET is "reset")
728 type = type+"button"
729 self._add_label(d)
730 controls.append((type, name, d))
731
732 def do_input(self, attrs):
733 debug("%s", attrs)

Callers

nothing calls this directly

Calls 5

_add_labelMethod · 0.95
debugFunction · 0.70
getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected