added checking of header values for GREP (error); still UNION to do

This commit is contained in:
Miroslav Stampar
2011-01-31 12:21:17 +00:00
parent a6f2cd56ff
commit 8ef47307db
3 changed files with 22 additions and 5 deletions

View File

@@ -2292,3 +2292,16 @@ def unhandledExceptionMessage():
errMsg += "Technique: %s\n" % (enumValueToNameLookup(PAYLOAD.TECHNIQUE, kb.technique) if kb.technique else None)
errMsg += "Back-end DBMS: %s" % kb.dbms
return errMsg
def listToStrValue(value):
"""
Flattens list to a string value
>>> listToStrValue([1,2,3])
'1, 2, 3'
"""
if isinstance(value, list):
retValue = value.__str__().lstrip('[').rstrip(']')
else:
retValue = value
return retValue