mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Another patch related to #1539 (simplifying unicode bad chars and preventing double encoding of safe chars)
This commit is contained in:
@@ -2954,6 +2954,10 @@ def decodeIntToUnicode(value):
|
||||
retVal = unichr(value)
|
||||
else:
|
||||
retVal = getUnicode(raw, conf.charset)
|
||||
|
||||
if Backend.isDbms(DBMS.MYSQL):
|
||||
import pdb
|
||||
pdb.set_trace()
|
||||
else:
|
||||
retVal = getUnicode(chr(value))
|
||||
except:
|
||||
|
||||
@@ -587,7 +587,7 @@ EVENTVALIDATION_REGEX = r'(?i)(?P<name>__EVENTVALIDATION[^"]*)[^>]+value="(?P<re
|
||||
LIMITED_ROWS_TEST_NUMBER = 15
|
||||
|
||||
# Format used for representing invalid unicode characters
|
||||
INVALID_UNICODE_CHAR_FORMAT = r"\?%02x"
|
||||
INVALID_UNICODE_CHAR_FORMAT = r"\x%02x"
|
||||
|
||||
# Regular expression for XML POST data
|
||||
XML_RECOGNITION_REGEX = r"(?s)\A\s*<[^>]+>(.+>)?\s*\Z"
|
||||
|
||||
Reference in New Issue
Block a user