mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Fix for empty strings (previously '' was just removed)
This commit is contained in:
@@ -23,7 +23,9 @@ class Syntax:
|
|||||||
|
|
||||||
if quote:
|
if quote:
|
||||||
for item in re.findall(r"'[^']*'+", expression, re.S):
|
for item in re.findall(r"'[^']*'+", expression, re.S):
|
||||||
retVal = retVal.replace(item, escaper(item[1:-1]))
|
_ = item[1:-1]
|
||||||
|
if _:
|
||||||
|
retVal = retVal.replace(item, escaper(_))
|
||||||
else:
|
else:
|
||||||
retVal = escaper(expression)
|
retVal = escaper(expression)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user