summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/result_templates/images.html
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2015-04-26 15:32:26 +0200
committerAlexandre Flament <alex@al-f.net>2015-04-26 15:32:26 +0200
commit77b2fbb61edadab9319cfee429e9694840edec81 (patch)
tree73d382036e9acea587b251505a2d32714d26015e /searx/templates/oscar/result_templates/images.html
parent952473d297b2f0131196086f5824ae48f32d2922 (diff)
downloadsearxng-77b2fbb61edadab9319cfee429e9694840edec81.tar.gz
searxng-77b2fbb61edadab9319cfee429e9694840edec81.zip
[enh] implements #264 : add rel="noreferrer" to external links
Diffstat (limited to 'searx/templates/oscar/result_templates/images.html')
-rw-r--r--searx/templates/oscar/result_templates/images.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/templates/oscar/result_templates/images.html b/searx/templates/oscar/result_templates/images.html
index 3f39ca6da..1bfff0a1a 100644
--- a/searx/templates/oscar/result_templates/images.html
+++ b/searx/templates/oscar/result_templates/images.html
@@ -1,6 +1,6 @@
{% from 'oscar/macros.html' import draw_favicon %}
-<a href="{{ result.img_src }}" data-toggle="modal" data-target="#modal-{{ index }}">
+<a href="{{ result.img_src }}" rel="noreferrer" data-toggle="modal" data-target="#modal-{{ index }}">
<img src="{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" class="img-thumbnail">
</a>
@@ -20,8 +20,8 @@
<span class="label label-default pull-right">{{ result.engine }}</span>
<p class="text-muted pull-left">{{ result.pretty_url }}</p>
<div class="clearfix"></div>
- <a href="{{ result.img_src }}" class="btn btn-default">{{ _('Get image') }}</a>
- <a href="{{ result.url }}" class="btn btn-default">{{ _('View source') }}</a>
+ <a href="{{ result.img_src }}" rel="noreferrer" class="btn btn-default">{{ _('Get image') }}</a>
+ <a href="{{ result.url }}" rel="noreferrer" class="btn btn-default">{{ _('View source') }}</a>
</div>
</div>
</div>