mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 05:31:32 +00:00
fix for a bug reported by nightman (unknown charset 'null')
This commit is contained in:
@@ -92,6 +92,8 @@ def checkCharEncoding(encoding):
|
|||||||
encoding = 'cp%s' % encoding[3:]
|
encoding = 'cp%s' % encoding[3:]
|
||||||
elif encoding.startswith('windows') and not encoding.startswith('windows-'):
|
elif encoding.startswith('windows') and not encoding.startswith('windows-'):
|
||||||
encoding = 'windows-%s' % encoding[7:]
|
encoding = 'windows-%s' % encoding[7:]
|
||||||
|
elif encoding == 'null':
|
||||||
|
return None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
codecs.lookup(encoding)
|
codecs.lookup(encoding)
|
||||||
|
|||||||
Reference in New Issue
Block a user