mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
fix for a charset encoding reported by Kirill
This commit is contained in:
@@ -103,7 +103,9 @@ def checkCharEncoding(encoding):
|
||||
|
||||
# popular typos/errors
|
||||
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'):
|
||||
encoding = 'iso-%s' % encoding
|
||||
|
||||
|
||||
Reference in New Issue
Block a user