mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-12 09:03:12 +03:00
Minor bug fix (getting ? in < 0xf char cases)
This commit is contained in:
parent
093a93938c
commit
c75560ba69
|
@ -2590,7 +2590,10 @@ def decodeIntToUnicode(value):
|
||||||
try:
|
try:
|
||||||
# http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord
|
# http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord
|
||||||
if Backend.getIdentifiedDbms() in (DBMS.MYSQL,):
|
if Backend.getIdentifiedDbms() in (DBMS.MYSQL,):
|
||||||
retVal = getUnicode(hexdecode(hex(value)))
|
_ = "%x" % value
|
||||||
|
if len(_) % 2 == 1:
|
||||||
|
_ = "0%s" % _
|
||||||
|
retVal = getUnicode(hexdecode(_))
|
||||||
elif value > 255:
|
elif value > 255:
|
||||||
retVal = unichr(value)
|
retVal = unichr(value)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user