Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2fbd7e8

Browse files
committed
Minor fix
1 parent df9b1d7 commit 2fbd7e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
101101
elif kb.postHint == POST_HINT.JSON:
102102
origValue = extractRegexResult(r"(?s)\"\s*:\s*(?P<result>\d+\Z)", origValue) or extractRegexResult(r'(?s)(?P<result>[^"]+\Z)', origValue)
103103
else:
104-
origValue = extractRegexResult(r"(?s)(?P<result>[^\s<>{}();'\"]+\Z)", origValue)
104+
origValue = extractRegexResult(r"(?s)(?P<result>[^\s<>{}();'\"]+\Z)", origValue) or ""
105105
elif place == PLACE.CUSTOM_HEADER:
106106
paramString = origValue
107107
origValue = origValue.split(CUSTOM_INJECTION_MARK_CHAR)[0]

0 commit comments

Comments
 (0)