mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
fix for a bug reported by Marek Sarvas
This commit is contained in:
@@ -269,6 +269,9 @@ Richard Safran <allapplyhere@yahoo.com>
|
|||||||
Tomoyuki Sakurai <cherry@trombik.org>
|
Tomoyuki Sakurai <cherry@trombik.org>
|
||||||
for submitting to the FreeBSD project the sqlmap 0.5 port
|
for submitting to the FreeBSD project the sqlmap 0.5 port
|
||||||
|
|
||||||
|
Marek Sarvas <marek.sarvas@gmail.com>
|
||||||
|
for reporting a minor bug
|
||||||
|
|
||||||
Philippe A. R. Schaeffer <schaeff@compuphil.de>
|
Philippe A. R. Schaeffer <schaeff@compuphil.de>
|
||||||
for reporting a minor bug
|
for reporting a minor bug
|
||||||
|
|
||||||
|
|||||||
@@ -100,8 +100,10 @@ def checkCharEncoding(encoding):
|
|||||||
translate = { 'windows-874':'iso-8859-11' }
|
translate = { 'windows-874':'iso-8859-11' }
|
||||||
|
|
||||||
#http://philip.html5.org/data/charsets-2.html
|
#http://philip.html5.org/data/charsets-2.html
|
||||||
if encoding and encoding.startswith('cp-'):
|
if encoding.startswith('cp-'):
|
||||||
encoding = 'cp%s' % encoding[3:]
|
encoding = 'cp%s' % encoding[3:]
|
||||||
|
elif ';' in encoding:
|
||||||
|
encoding = encoding[:encoding.find(';')]
|
||||||
elif encoding in translate:
|
elif encoding in translate:
|
||||||
encoding = translate[encoding]
|
encoding = translate[encoding]
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user