mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
Implementation of an Issue #147
This commit is contained in:
@@ -1029,6 +1029,8 @@ def parseTargetUrl():
|
||||
if not conf.url:
|
||||
return
|
||||
|
||||
originalUrl = conf.url
|
||||
|
||||
if re.search("\[.+\]", conf.url) and not socket.has_ipv6:
|
||||
errMsg = "IPv6 addressing is not supported "
|
||||
errMsg += "on this platform"
|
||||
@@ -1091,6 +1093,9 @@ def parseTargetUrl():
|
||||
conf.httpHeaders = filter(lambda (key, value): key != HTTPHEADER.HOST, conf.httpHeaders)
|
||||
conf.httpHeaders.append((HTTPHEADER.HOST, getHostHeader(conf.url)))
|
||||
|
||||
if originalUrl != conf.url:
|
||||
kb.originalUrls[conf.url] = originalUrl
|
||||
|
||||
def expandAsteriskForColumns(expression):
|
||||
"""
|
||||
If the user provided an asterisk rather than the column(s)
|
||||
|
||||
Reference in New Issue
Block a user