Skip to content

Commit c4e6c3e

Browse files
committed
1 parent 91045aa commit c4e6c3e

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,9 +1270,11 @@ def sanitizeStr(value):
12701270
12711271
>>> sanitizeStr('foo\\n\\rbar') == 'foo bar'
12721272
True
1273+
>>> sanitizeStr(None) == 'None'
1274+
True
12731275
"""
12741276

1275-
return getUnicode(value).replace("\n", " ").replace("\r", "") if value else value
1277+
return getUnicode(value).replace("\n", " ").replace("\r", "")
12761278

12771279
def getHeader(headers, key):
12781280
"""

lib/core/convert.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ def getUnicode(value, encoding=None, noneToNull=False):
330330
True
331331
>>> getUnicode(1) == u'1'
332332
True
333+
>>> getUnicode(None) == 'None'
334+
True
333335
"""
334336

335337
if noneToNull and value is None:

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.5.1.7"
21+
VERSION = "1.5.1.8"
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)

0 commit comments

Comments
 (0)