Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4fa39f4

Browse files
committed
Debugging broken Travis
1 parent a989e1a commit 4fa39f4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.2.17"
21+
VERSION = "1.4.2.18"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def checkCharEncoding(encoding, warn=True):
174174
if encoding:
175175
encoding = encoding.lower()
176176
else:
177-
return encoding
177+
return "A" # encoding
178178

179179
# Reference: http://www.destructor.de/charsets/index.htm
180180
translate = {"windows-874": "iso-8859-11", "utf-8859-1": "utf8", "en_us": "utf8", "macintosh": "iso-8859-1", "euc_tw": "big5_tw", "th": "tis-620", "unicode": "utf8", "utc8": "utf8", "ebcdic": "ebcdic-cp-be", "iso-8859": "iso8859-1", "iso-8859-0": "iso8859-1", "ansi": "ascii", "gbk2312": "gbk", "windows-31j": "cp932", "en": "us"}
@@ -227,7 +227,7 @@ def checkCharEncoding(encoding, warn=True):
227227
if encoding in translate:
228228
encoding = translate[encoding]
229229
elif encoding in ("null", "{charset}", "charset", "*") or not re.search(r"\w", encoding):
230-
return None
230+
return "B" # None
231231

232232
# Reference: http://www.iana.org/assignments/character-sets
233233
# Reference: http://docs.python.org/library/codecs.html

0 commit comments

Comments
 (0)