mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-28 12:33:49 +03:00
fix of a minor bug reported by syssecurity7@googlemail.com (missing iso-8858...)
This commit is contained in:
parent
0d3f6edcc4
commit
cbfb10cbd1
|
@ -500,6 +500,9 @@ Stuffe <stuffe.dk@gmail.com>
|
|||
Sylphid <sylphid.su@sti.com.tw>
|
||||
for suggesting some features
|
||||
|
||||
syssecurity.info <syssecurity7@googlemail.com>
|
||||
for reporting a minor bug
|
||||
|
||||
ToR <sstidus@email.it>
|
||||
for reporting considerable amount of bugs
|
||||
for suggesting a feature
|
||||
|
|
|
@ -103,6 +103,8 @@ def checkCharEncoding(encoding):
|
|||
# http://philip.html5.org/data/charsets-2.html
|
||||
if encoding in translate:
|
||||
encoding = translate[encoding]
|
||||
elif encoding.startswith('iso-8858'): #very popular typo
|
||||
encoding = encoding.replace('8858', '8859')
|
||||
elif encoding.startswith('cp-'):
|
||||
encoding = 'cp%s' % encoding[3:]
|
||||
elif encoding.startswith('windows') and not encoding.startswith('windows-'):
|
||||
|
@ -110,6 +112,7 @@ def checkCharEncoding(encoding):
|
|||
elif encoding == 'null':
|
||||
return None
|
||||
|
||||
# http://www.iana.org/assignments/character-sets
|
||||
try:
|
||||
codecs.lookup(encoding)
|
||||
except LookupError:
|
||||
|
|
Loading…
Reference in New Issue
Block a user