mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-15 10:42:27 +03:00
fix for a charset encoding reported by Kirill
This commit is contained in:
parent
a1bde071d8
commit
018b6b9430
|
@ -103,7 +103,9 @@ def checkCharEncoding(encoding):
|
||||||
|
|
||||||
# popular typos/errors
|
# popular typos/errors
|
||||||
if '8858' in encoding:
|
if '8858' in encoding:
|
||||||
encoding = encoding.replace('8858', '8859')
|
encoding = encoding.replace('8858', '8859') # iso-8858 -> iso-8859
|
||||||
|
elif '2313' in encoding:
|
||||||
|
encoding = encoding.replace('2313', '2312') # gb2313 -> gb2312
|
||||||
if encoding.startswith('8859'):
|
if encoding.startswith('8859'):
|
||||||
encoding = 'iso-%s' % encoding
|
encoding = 'iso-%s' % encoding
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user