Skip to content

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

fix: fix importing exported API keys

Amr Awad37dd6dfc35f8
diff --git a/sfwebui.py b/sfwebui.py
index 0143d088..eb738ddf 100644
--- a/sfwebui.py
+++ b/sfwebui.py
@@ -574,6 +574,9 @@ class SpiderFootWebUi:
if configFile: # configFile seems to get set even if a file isn't uploaded
if configFile.file:
contents = configFile.file.read()
+
+ if type(contents) == bytes:
+ contents = contents.decode("utf-8")
try:
tmp = dict()
for line in contents.split("\n"):