mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
minor update for invalid cases like 'iso-8859-1 (western europe)'
This commit is contained in:
parent
2da56ea507
commit
0990f16f7f
|
@ -99,9 +99,9 @@ def checkCharEncoding(encoding):
|
|||
# http://www.destructor.de/charsets/index.htm
|
||||
translate = { 'windows-874': 'iso-8859-11', 'en_us': 'utf8', 'macintosh': 'iso-8859-1', 'euc_tw': 'big5_tw' }
|
||||
|
||||
for delimiter in (';', ','):
|
||||
for delimiter in (';', ',', '('):
|
||||
if delimiter in encoding:
|
||||
encoding = encoding[:encoding.find(delimiter)]
|
||||
encoding = encoding[:encoding.find(delimiter)].strip()
|
||||
|
||||
# popular typos/errors
|
||||
if '8858' in encoding:
|
||||
|
|
Loading…
Reference in New Issue
Block a user