Skip to content

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

Fixed target type determination for webui rescan action

Steve Bateb96c2c8cd3a7
diff --git a/sfwebui.py b/sfwebui.py
index 975b903a..5617db1c 100644
--- a/sfwebui.py
+++ b/sfwebui.py
@@ -348,10 +348,11 @@ class SpiderFootWebUi:
modlist.remove("sfp__stor_stdout")
targetType = sf.targetType(scantarget)
- if targetType == None:
+ if targetType is None:
# It must then be a name, as a re-run scan should always have a clean
- # target.
- targetType = "HUMAN_NAME"
+ # target. Put quotes around the target value and try to determine the
+ # target type again.
+ targetType = sf.targetType(f'"{scantarget}"')
if targetType != "HUMAN_NAME":
scantarget = scantarget.lower()