Fix for an Issue #157

This commit is contained in:
Miroslav Stampar 2012-08-21 14:34:19 +02:00
parent 80120e849f
commit d421f9a618
2 changed files with 3 additions and 1 deletions

View File

@ -3110,6 +3110,8 @@ def evaluateCode(code, variables=None):
try:
exec(code, variables)
except KeyboardInterrupt:
raise
except Exception, ex:
errMsg = "an error occured while evaluating provided code ('%s'). " % ex
raise sqlmapGenericException, errMsg

View File

@ -647,7 +647,7 @@ class Connect:
for part in item.split(delimiter):
if '=' in part:
name, value = part.split('=', 1)
evaluateCode("%s='%s'" % (name, value), variables)
evaluateCode("%s=%s" % (name, repr(value)), variables)
originals.update(variables)
evaluateCode(conf.evalCode, variables)