SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfwebui: do not show api key instructions for modules with no instructions (#1265)
bcoles292dcdb7ce32
diff --git a/spiderfoot/templates/opts.tmpl b/spiderfoot/templates/opts.tmplindex 58293e43..03f54b1b 100644--- a/spiderfoot/templates/opts.tmpl+++ b/spiderfoot/templates/opts.tmpl@@ -134,18 +134,17 @@<tr><td>${optdescs.get(opt) or "No description available."}% if "api_key" in opt:- <%- import re- if apiKeyInstructions:- n = 0+ % if apiKeyInstructions:+ <%+ import reinstructions = ""for step in apiKeyInstructions:- n += 1if "https://" in step or "http://" in step:step = re.sub(r'.*(https?://.[^ ]+).*', '<a target=_new href=\'\\1\'>\\1</a>', step)- instructions += str(n) + ". " + step + "<br>"- %>- <a href='#' data-html="true" data-toggle="popover" data-trigger="focus" title="Instructions" data-content="${instructions}"><i class="glyphicon glyphicon-question-sign"></i></a>+ instructions += f"<li>{step}</li>"+ %>+ <a href='#' data-html="true" data-toggle="popover" data-trigger="focus" title="Instructions" data-content="<ol>${instructions}</ol>"><i class="glyphicon glyphicon-question-sign"></i></a>+ % endif% endif</td><td style='vertical-align: middle'>