From 9129dac77b181d96dc7a21a9a27e0df18ebfab21 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 4 Oct 2012 15:33:26 +0200 Subject: [PATCH] Minor fix for an Issue #134 --- lib/core/agent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/agent.py b/lib/core/agent.py index b1baa7610..c3e4b9a68 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -75,12 +75,14 @@ class Agent: origValue = paramDict[parameter] if place == PLACE.URI: + paramString = origValue origValue = origValue.split(CUSTOM_INJECTION_MARK_CHAR)[0] origValue = origValue[origValue.rfind('/') + 1:] for char in ('?', '=', ':'): if char in origValue: origValue = origValue[origValue.rfind(char) + 1:] elif place == PLACE.CUSTOM_POST: + paramString = origValue origValue = origValue.split(CUSTOM_INJECTION_MARK_CHAR)[0] origValue = extractRegexResult(r"(?s)(?P(\W+\Z|\w+\Z))", origValue)