Skip to content

Commit fce671c

Browse files
committed
Patch for an Issue sqlmapproject#801
1 parent fd36250 commit fce671c

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

lib/core/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3337,6 +3337,8 @@ def geturl(self):
33373337

33383338
try:
33393339
forms = ParseResponse(response, backwards_compat=False)
3340+
except UnicodeError:
3341+
pass
33403342
except ParseError:
33413343
warnMsg = "badly formed HTML at the given URL ('%s'). Going to filter it" % url
33423344
logger.warning(warnMsg)

thirdparty/clientform/clientform.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,7 @@ def _ParseFileEx(file, base_uri,
11241124
if action is None:
11251125
action = base_uri
11261126
else:
1127+
action = unicode(action, "utf8") if action and not isinstance(action, unicode) else action
11271128
action = _urljoin(base_uri, action)
11281129
# would be nice to make HTMLForm class (form builder) pluggable
11291130
form = HTMLForm(

0 commit comments

Comments
 (0)