removing that boring message "reflective value found and filtered out" for headers case (we always include Uri header)

This commit is contained in:
Miroslav Stampar
2011-03-29 20:45:21 +00:00
parent 9f707febf5
commit 12f3024c8a
3 changed files with 6 additions and 7 deletions

View File

@@ -124,10 +124,9 @@ def __unionPosition(comment, place, parameter, value, prefix, suffix, count, whe
# Perform the request
page, headers = Request.queryPage(payload, place=place, content=True, raise404=False)
content = "%s%s".lower() % (page or "", listToStrValue(headers.headers if headers else None) or "")
# Remove possible reflective values from content (especially headers part)
content = removeReflectiveValues(content, payload)
content = "%s%s".lower() % (removeReflectiveValues(page, payload) or "", \
removeReflectiveValues(listToStrValue(headers.headers if headers else None), \
payload, True) or "")
if content and phrase in content:
validPayload = payload