fix: Skip block if urls not on phishtank.

pull/265/head
Raphaël Vinot 2021-09-23 14:08:39 +02:00
parent bf94dd6578
commit 52f6d91fba
1 changed files with 2 additions and 0 deletions

View File

@ -28,12 +28,14 @@
<center>
<h1 class="display-4">Phishtank</h1>
<div>
{% if phishtank.get('urls') %}
<p>Phishtank flagged the URLs below as phishing:</p>
<ul>
{% for url, permaurl in phishtank['urls'].items() %}
<li>{{ shorten_string(url, 150) }}: <a href="{{ permaurl }}">click to view it</a> on phishtank.</p></li>
{% endfor %}
</ul>
{% endif%}
{% if phishtank.get('ips_hits') %}
<p>The IPs below are in the tree and are flagged as phishing on Phishtank, might on on other URLs:</p>