Skip to content

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

sfwebui: 302 redirect /rerunscan?id=<id> URLs to /scaninfo?id=<id>

Brendan Coles7dda595f259c
diff --git a/sfwebui.py b/sfwebui.py
index 262f6cb6..5417b319 100644
--- a/sfwebui.py
+++ b/sfwebui.py
@@ -421,9 +421,7 @@ class SpiderFootWebUi:
print("[info] Waiting for the scan to initialize...")
time.sleep(1)
- templ = Template(filename='dyn/scaninfo.tmpl', lookup=self.lookup)
- return templ.render(id=scanId, name=str(scanname), docroot=self.docroot,
- status=dbh.scanInstanceGet(scanId), pageid="SCANLIST")
+ raise cherrypy.HTTPRedirect(f"scaninfo?id={scanId}", status=302)
rerunscan.exposed = True