mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Patch for an Issue reported via email
This commit is contained in:
parent
89e0fc8ffa
commit
ae7481081e
|
@ -156,6 +156,8 @@ def checkCharEncoding(encoding, warn=True):
|
|||
if delimiter in encoding:
|
||||
encoding = encoding[:encoding.find(delimiter)].strip()
|
||||
|
||||
encoding = encoding.replace(""", "")
|
||||
|
||||
# popular typos/errors
|
||||
if "8858" in encoding:
|
||||
encoding = encoding.replace("8858", "8859") # iso-8858 -> iso-8859
|
||||
|
@ -189,6 +191,8 @@ def checkCharEncoding(encoding, warn=True):
|
|||
encoding = "ascii"
|
||||
elif encoding.find("utf8") > 0:
|
||||
encoding = "utf8"
|
||||
elif encoding.find("utf-8") > 0:
|
||||
encoding = "utf-8"
|
||||
|
||||
# Reference: http://philip.html5.org/data/charsets-2.html
|
||||
if encoding in translate:
|
||||
|
|
Loading…
Reference in New Issue
Block a user