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

Skip to content

Commit 2c1bd7f

Browse files
committed
Update for an Issue #1531 (MySQL quirk with international letters)
1 parent f7cae68 commit 2c1bd7f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3046,7 +3046,10 @@ def decodeIntToUnicode(value):
30463046
_ = "0%s" % _
30473047
raw = hexdecode(_)
30483048

3049-
if Backend.isDbms(DBMS.MSSQL):
3049+
if Backend.isDbms(DBMS.MYSQL):
3050+
# https://github.com/sqlmapproject/sqlmap/issues/1531
3051+
retVal = getUnicode(raw, conf.charset or UNICODE_ENCODING)
3052+
elif Backend.isDbms(DBMS.MSSQL):
30503053
retVal = getUnicode(raw, "UTF-16-BE")
30513054
elif Backend.getIdentifiedDbms() in (DBMS.PGSQL, DBMS.ORACLE):
30523055
retVal = unichr(value)

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.47"
22+
VERSION = "1.0.5.48"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

0 commit comments

Comments
 (0)