mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-22 16:24:28 +01:00
Minor patch
This commit is contained in:
parent
236b774f9a
commit
e5863d8b89
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ def checkCharEncoding(encoding, warn=True):
|
|||
# Reference: http://philip.html5.org/data/charsets-2.html
|
||||
if encoding in translate:
|
||||
encoding = translate[encoding]
|
||||
elif encoding in ("null", "{charset}", "*"):
|
||||
elif encoding in ("null", "{charset}", "*") or not re.search(r"\w", encoding):
|
||||
return None
|
||||
|
||||
# Reference: http://www.iana.org/assignments/character-sets
|
||||
|
|
|
|||
Loading…
Reference in a new issue