mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
Fixes #1521
This commit is contained in:
parent
6adb6eabec
commit
3451372d4e
1 changed files with 2 additions and 2 deletions
|
|
@ -493,6 +493,8 @@ class Agent(object):
|
||||||
if not _:
|
if not _:
|
||||||
fieldsSelectFrom = None
|
fieldsSelectFrom = None
|
||||||
|
|
||||||
|
fieldsToCastStr = fieldsNoSelect
|
||||||
|
|
||||||
if fieldsSubstr:
|
if fieldsSubstr:
|
||||||
fieldsToCastStr = query
|
fieldsToCastStr = query
|
||||||
elif fieldsMinMaxstr:
|
elif fieldsMinMaxstr:
|
||||||
|
|
@ -516,8 +518,6 @@ class Agent(object):
|
||||||
fieldsToCastStr = re.sub(r"\ASELECT%s\s+" % prefixRegex, "", fieldsToCastStr)
|
fieldsToCastStr = re.sub(r"\ASELECT%s\s+" % prefixRegex, "", fieldsToCastStr)
|
||||||
elif fieldsSelect:
|
elif fieldsSelect:
|
||||||
fieldsToCastStr = fieldsSelect.groups()[0]
|
fieldsToCastStr = fieldsSelect.groups()[0]
|
||||||
else:
|
|
||||||
fieldsToCastStr = fieldsNoSelect
|
|
||||||
|
|
||||||
# Function
|
# Function
|
||||||
if re.search("\A\w+\(.*\)", fieldsToCastStr, re.I) or (fieldsSelectCase and "WHEN use" not in query) or fieldsSubstr:
|
if re.search("\A\w+\(.*\)", fieldsToCastStr, re.I) or (fieldsSelectCase and "WHEN use" not in query) or fieldsSubstr:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue