mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-10 02:14:17 +01:00
fix for #349 (compatible with all others DBMSes too)
This commit is contained in:
parent
acac8c359b
commit
b6e44ae64e
1 changed files with 1 additions and 3 deletions
|
|
@ -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 a new issue