mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
fix for #349 (compatible with all others DBMSes too)
This commit is contained in:
parent
acac8c359b
commit
b6e44ae64e
|
@ -328,9 +328,7 @@ def getValue(expression, blind=True, union=True, error=True, time=True, fromUser
|
|||
forgeCaseExpression = booleanExpression = expression
|
||||
|
||||
if expression.upper().startswith("SELECT "):
|
||||
booleanExpression = expression[len("SELECT "):]
|
||||
if re.search(r"(?i)\(.+\)\Z", booleanExpression):
|
||||
booleanExpression = "%s=%s" % (booleanExpression, "'1'" if "'1'" in booleanExpression else '1')
|
||||
booleanExpression = "(%s)=%s" % (booleanExpression, "'1'" if "'1'" in booleanExpression else "1")
|
||||
else:
|
||||
forgeCaseExpression = agent.forgeCaseStatement(expression)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user