From 88faedc0fe19184c2259aaccc0849fffe2d6ef7a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 26 Feb 2011 17:48:19 +0000 Subject: [PATCH] fix for a bug reported by -insane- --- lib/core/common.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index c75274a64..fe71ddee4 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2401,7 +2401,11 @@ def removeReflectiveValues(content, payload): payload = payload.replace(PAYLOAD_DELIMITER, '') regex = filterStringValue(payload, r'[A-Za-z0-9]', r'[^\s]+') - retVal = re.sub(regex, REFLECTED_VALUE_MARKER, content) + + while r'[^\s]+[^\s]+' in regex: + regex = regex.replace(r'[^\s]+[^\s]+', r'[^\s]+') + + retVal = re.compile(regex).sub(REFLECTED_VALUE_MARKER, content) if retVal != content: debugMsg = "reflective value found and filtered out"