Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion dojo/tools/nuclei/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ def get_findings(self, filename, test):
)

if locations_enabled():
dupe_host = (urlparse(matched).hostname or "") if matched else ""
# Prepend "//" for protocol-less URLs so urlparse extracts
# the hostname correctly (mirrors LocationData construction).
parseable = matched if "://" in matched else "//" + matched
dupe_host = (urlparse(parseable).hostname or "") if matched else ""
else:
# TODO: Delete this after the move to Locations
dupe_host = str(location.host) if location else ""
Expand Down
Loading