mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Fixes #3926
This commit is contained in:
4
thirdparty/clientform/clientform.py
vendored
4
thirdparty/clientform/clientform.py
vendored
@@ -227,6 +227,9 @@ def unescape(data, entities, encoding=DEFAULT_ENCODING):
|
||||
if data is None or "&" not in data:
|
||||
return data
|
||||
|
||||
if isinstance(data, six.string_types):
|
||||
encoding = None
|
||||
|
||||
def replace_entities(match, entities=entities, encoding=encoding):
|
||||
ent = match.group()
|
||||
if ent[1] == "#":
|
||||
@@ -279,7 +282,6 @@ def get_entitydefs():
|
||||
entitydefs["&%s;" % name] = _unichr(codepoint)
|
||||
return entitydefs
|
||||
|
||||
|
||||
def issequence(x):
|
||||
try:
|
||||
x[0]
|
||||
|
||||
Reference in New Issue
Block a user