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)