Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b427f6c

Browse files
committed
Minor bug fix
1 parent 6f3511d commit b427f6c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/techniques/error/use.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False):
197197
_ = "%s(?P<result>.*?)%s" % (kb.chars.start, kb.chars.stop)
198198
retVal = extractRegexResult(_, retVal, re.DOTALL | re.IGNORECASE) or retVal
199199

200+
try:
201+
retVal = re.sub(r"&#x([^;]+);", lambda match: chr(int(match.group(1), 16)), retVal)
202+
except ValueError:
203+
pass
204+
200205
return safecharencode(retVal) if kb.safeCharEncode else retVal
201206

202207
def _errorFields(expression, expressionFields, expressionFieldsList, num=None, emptyFields=None, suppressOutput=False):

0 commit comments

Comments
 (0)