mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
minor enhancement for dumping 'None' values (proper way should be empty string because None is too pythonic)
This commit is contained in:
parent
c64eb38a8b
commit
70688fb8b5
|
@ -414,10 +414,13 @@ class Dump:
|
||||||
if len(info["values"]) <= i:
|
if len(info["values"]) <= i:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
value = getUnicode(info["values"][i])
|
if info["values"][i] is None:
|
||||||
|
value = u''
|
||||||
|
else:
|
||||||
|
value = getUnicode(info["values"][i])
|
||||||
|
|
||||||
if re.search("^[\ *]*$", value):
|
if re.search("^[\ *]*$", value):
|
||||||
value = "NULL"
|
value = "NULL"
|
||||||
|
|
||||||
values.append(value)
|
values.append(value)
|
||||||
maxlength = int(info["length"])
|
maxlength = int(info["length"])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user