From 2fbd7e8929cd1d152d2e0789a6de4fbc8c95411b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 24 Sep 2013 21:56:40 +0200 Subject: [PATCH] Minor fix --- 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 9581f8ed7..0a4a52791 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -101,7 +101,7 @@ class Agent(object): elif kb.postHint == POST_HINT.JSON: 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) + origValue = extractRegexResult(r"(?s)(?P[^\s<>{}();'\"]+\Z)", origValue) or "" elif place == PLACE.CUSTOM_HEADER: paramString = origValue origValue = origValue.split(CUSTOM_INJECTION_MARK_CHAR)[0]