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

Method start_form

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

Source from the content-addressed store, hash-verified

512 self.end_form()
513
514 def start_form(self, attrs):
515 debug("%s", attrs)
516 if self._current_form is not self._global_form:
517 raise ParseError("nested FORMs")
518 name = None
519 action = None
520 enctype = "application/x-www-form-urlencoded"
521 method = "GET"
522 d = {}
523 for key, value in attrs:
524 if key == "name":
525 name = self.unescape_attr_if_required(value)
526 elif key == "action":
527 action = self.unescape_attr_if_required(value)
528 elif key == "method":
529 method = self.unescape_attr_if_required(value.upper())
530 elif key == "enctype":
531 enctype = self.unescape_attr_if_required(value.lower())
532 d[key] = self.unescape_attr_if_required(value)
533 controls = []
534 self._current_form = (name, action, method, enctype), d, controls
535
536 def end_form(self):
537 debug("")

Callers 1

__init__Method · 0.95

Calls 3

ParseErrorClass · 0.85
debugFunction · 0.70

Tested by

no test coverage detected