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

Skip to content

Commit a19bccc

Browse files
committed
Fixes #1205
1 parent 770cfb6 commit a19bccc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ def parseTargetUrl():
13061306
debugMsg = "setting the HTTP Referer header to the target URL"
13071307
logger.debug(debugMsg)
13081308
conf.httpHeaders = filter(lambda (key, value): key != HTTP_HEADER.REFERER, conf.httpHeaders)
1309-
conf.httpHeaders.append((HTTP_HEADER.REFERER, conf.url))
1309+
conf.httpHeaders.append((HTTP_HEADER.REFERER, conf.url.replace(CUSTOM_INJECTION_MARK_CHAR, "")))
13101310

13111311
if not conf.host and (intersect(HOST_ALIASES, conf.testParameter, True) or conf.level >= 5):
13121312
debugMsg = "setting the HTTP Host header to the target URL"

0 commit comments

Comments
 (0)