From 28cd50b2f10e7506ab64d1aa55b1df36b6b4ef76 Mon Sep 17 00:00:00 2001 From: stamparm Date: Tue, 16 Jul 2013 14:08:32 +0200 Subject: [PATCH] Patch for an Issue #490 --- lib/core/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 6213935e9..9581f8ed7 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -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: