minor improvement

This commit is contained in:
Miroslav Stampar 2011-02-18 14:27:02 +00:00
parent 3badf92ceb
commit df58bcaf95

View File

@ -578,15 +578,10 @@ def __setOS():
raise sqlmapUnsupportedDBMSException, errMsg raise sqlmapUnsupportedDBMSException, errMsg
def __setTechnique(): def __setTechnique():
if not isinstance(conf.technique, int): if not conf.technique or not isinstance(conf.technique, int):
return conf.technique = []
else:
techniques = [] conf.technique = filter(lambda x: x in PAYLOAD.SQLINJECTION, [int(c) for c in str(conf.technique)])
while conf.technique > 0:
techniques.append(conf.technique % 10)
conf.technique /= 10
conf.technique = techniques
def __setDBMS(): def __setDBMS():
""" """