mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
minor refactoring
This commit is contained in:
parent
c6b9d89d31
commit
e33a48d40f
|
@ -74,10 +74,11 @@ def __oneShotUnionUse(expression, unpack=True):
|
|||
|
||||
def configUnion(char=None, columns=None):
|
||||
def __configUnionChar(char):
|
||||
if char.isdigit() or char == "NULL" or char.startswith("[RANDNUM"):
|
||||
if isinstance(char, basestring):
|
||||
if any([char.isdigit(), char == "NULL", char == "[RANDNUM]"]):
|
||||
conf.uChar = char
|
||||
elif not char.startswith("'") or not char.endswith("'"):
|
||||
conf.uChar = "'%s'" % char
|
||||
else:
|
||||
conf.uChar = "'%s'" % char.strip("'")
|
||||
|
||||
def __configUnionCols(columns):
|
||||
columns = columns.replace(" ", "")
|
||||
|
|
Loading…
Reference in New Issue
Block a user