From 8e6692d7934cc07fc57b8e561fd4100ae4f50556 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 5 Mar 2013 20:11:58 +0100 Subject: [PATCH] Minor fix (for JSON values with :) --- 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 b7bd70f8c..8fadf1a1c 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -97,7 +97,7 @@ class Agent(object): if kb.postHint in (POST_HINT.SOAP, POST_HINT.XML): origValue = origValue.split('>')[-1] elif kb.postHint == POST_HINT.JSON: - origValue = extractRegexResult(r"(?s):\s*(?P\d+\Z)", origValue) or extractRegexResult(r'(?s)(?P[^"]+\Z)', origValue) + origValue = extractRegexResult(r"(?s)\"\s*:\s*(?P\d+\Z)", origValue) or extractRegexResult(r'(?s)(?P[^"]+\Z)', origValue) else: origValue = extractRegexResult(r"(?s)(?P[^\s<>{}();'\"]+\Z)", origValue) elif place == PLACE.CUSTOM_HEADER: