Patch for an Issue #490

This commit is contained in:
stamparm 2013-07-16 14:08:32 +02:00
parent e6f71c2130
commit 28cd50b2f1

View File

@ -250,7 +250,7 @@ class Agent(object):
payload = payload.replace(_, randomStr())
if origValue is not None:
payload = payload.replace("[ORIGVALUE]", origValue if origValue.isdigit() else "'%s'" % origValue)
payload = payload.replace("[ORIGVALUE]", origValue if origValue.isdigit() else unescaper.escape("'%s'" % origValue))
if "[INFERENCE]" in payload:
if Backend.getIdentifiedDbms() is not None: