Skip to content

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

fix binary -> string problems

Amr Awad4e7d2df47a84
diff --git a/sflib.py b/sflib.py
index 57f97542..66d992a1 100644
--- a/sflib.py
+++ b/sflib.py
@@ -2057,7 +2057,7 @@ class PublicSuffixList(object):
root = [0]
for line in fp:
- line = line.strip()
+ line = str(line).strip()
if line.startswith('//') or not line:
continue
diff --git a/sfwebui.py b/sfwebui.py
index a5708ade..53bcb9b9 100644
--- a/sfwebui.py
+++ b/sfwebui.py
@@ -384,9 +384,7 @@ class SpiderFootWebUi:
# Start running a new scan
newId = sf.genScanInstanceGUID(scanname)
- t = SpiderFootScanner(str(scanname, 'utf-8', errors='replace'),
- str(scantarget, 'utf-8', errors='replace').lower(),
- targetType, newId, modlist, cfg, modopts)
+ t = SpiderFootScanner(scanname, scantarget.lower(), targetType, newId, modlist, cfg, modopts)
t.start()
# Wait until the scan has initialized