mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-09 22:21:30 +00:00
Minor fix (user reported problem via email)
This commit is contained in:
@@ -48,7 +48,11 @@ def base64pickle(value):
|
||||
warnMsg += "instance of a type '%s'" % type(value)
|
||||
singleTimeWarnMessage(warnMsg)
|
||||
|
||||
retVal = base64encode(pickle.dumps(str(value), pickle.HIGHEST_PROTOCOL))
|
||||
try:
|
||||
retVal = base64encode(pickle.dumps(value))
|
||||
except:
|
||||
retVal = base64encode(pickle.dumps(str(value), pickle.HIGHEST_PROTOCOL))
|
||||
|
||||
return retVal
|
||||
|
||||
def base64unpickle(value):
|
||||
|
||||
Reference in New Issue
Block a user