Skip to content

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

Redirect to docroot instead of "/"

Bradc545064ce491
diff --git a/sfwebui.py b/sfwebui.py
index d7e4da09..1b433c42 100644
--- a/sfwebui.py
+++ b/sfwebui.py
@@ -456,7 +456,7 @@ class SpiderFootWebUi:
if confirm is not None:
dbh.scanInstanceDelete(id)
if not raw:
- raise cherrypy.HTTPRedirect("/")
+ raise cherrypy.HTTPRedirect(self.docroot)
else:
return json.dumps(["SUCCESS", ""])
else:
@@ -483,7 +483,7 @@ class SpiderFootWebUi:
if confirm is not None:
for id in ids.split(','):
dbh.scanInstanceDelete(id)
- raise cherrypy.HTTPRedirect("/")
+ raise cherrypy.HTTPRedirect(self.docroot)
else:
templ = Template(filename='dyn/scandelete.tmpl', lookup=self.lookup)
return templ.render(id=None, name=None, ids=ids.split(','), names=names,