Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Bug fix.

Stevebfcf22e5bd1a
diff --git a/sflib.py b/sflib.py
index 4be41666..f55379c5 100644
--- a/sflib.py
+++ b/sflib.py
@@ -660,9 +660,9 @@ class SpiderFoot:
# checks.
def urlBaseUrl(self, url):
if '://' in url:
- bits = re.match('(\w+://.[^/:]*)[:/].*', url)
+ bits = re.match('(\w+://.[^/:\?]*)[:/\?].*', url)
else:
- bits = re.match('(.[^/:]*)[:/]', url)
+ bits = re.match('(.[^/:\?]*)[:/\?]', url)
if bits is None:
return url.lower()