mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 19:55:47 +03:00
Fix for an Issue #157
This commit is contained in:
parent
80120e849f
commit
d421f9a618
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user