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

Method _start_option

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

Source from the content-addressed store, hash-verified

584 self._optgroup = None
585
586 def _start_option(self, attrs):
587 debug("%s", attrs)
588 if self._select is None:
589 raise ParseError("OPTION outside of SELECT")
590 if self._option is not None:
591 self._end_option()
592
593 d = {}
594 for key, val in attrs:
595 d[key] = self.unescape_attr_if_required(val)
596
597 self._option = {}
598 self._option.update(d)
599 if (self._optgroup and "disabled" in self._optgroup and
600 "disabled" not in self._option):
601 self._option["disabled"] = None
602
603 def _end_option(self):
604 debug("")

Callers 2

start_optionMethod · 0.80
do_optionMethod · 0.80

Calls 5

_end_optionMethod · 0.95
ParseErrorClass · 0.85
debugFunction · 0.70
updateMethod · 0.45

Tested by

no test coverage detected