mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-25 19:33: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 configUnion(char=None, columns=None):
|
||||||
def __configUnionChar(char):
|
def __configUnionChar(char):
|
||||||
if char.isdigit() or char == "NULL" or char.startswith("[RANDNUM"):
|
if isinstance(char, basestring):
|
||||||
conf.uChar = char
|
if any([char.isdigit(), char == "NULL", char == "[RANDNUM]"]):
|
||||||
elif not char.startswith("'") or not char.endswith("'"):
|
conf.uChar = char
|
||||||
conf.uChar = "'%s'" % char
|
else:
|
||||||
|
conf.uChar = "'%s'" % char.strip("'")
|
||||||
|
|
||||||
def __configUnionCols(columns):
|
def __configUnionCols(columns):
|
||||||
columns = columns.replace(" ", "")
|
columns = columns.replace(" ", "")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user