From a19bccc84f73b42fa2de00dd63e5606c2b110d4d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 26 Mar 2015 15:31:29 +0100 Subject: [PATCH] Fixes #1205 --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 4756f7de7..ed4330670 100755 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1306,7 +1306,7 @@ def parseTargetUrl(): debugMsg = "setting the HTTP Referer header to the target URL" logger.debug(debugMsg) conf.httpHeaders = filter(lambda (key, value): key != HTTP_HEADER.REFERER, conf.httpHeaders) - conf.httpHeaders.append((HTTP_HEADER.REFERER, conf.url)) + conf.httpHeaders.append((HTTP_HEADER.REFERER, conf.url.replace(CUSTOM_INJECTION_MARK_CHAR, ""))) if not conf.host and (intersect(HOST_ALIASES, conf.testParameter, True) or conf.level >= 5): debugMsg = "setting the HTTP Host header to the target URL"