summaryrefslogtreecommitdiff
path: root/searx/templates/pix-art
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/pix-art
parent952473d297b2f0131196086f5824ae48f32d2922 (diff)
downloadsearxng-77b2fbb61edadab9319cfee429e9694840edec81.tar.gz
searxng-77b2fbb61edadab9319cfee429e9694840edec81.zip
[enh] implements #264 : add rel="noreferrer" to external links
Diffstat (limited to 'searx/templates/pix-art')
-rw-r--r--searx/templates/pix-art/result_templates/default.html5
-rw-r--r--searx/templates/pix-art/result_templates/images.html4
2 files changed, 5 insertions, 4 deletions
diff --git a/searx/templates/pix-art/result_templates/default.html b/searx/templates/pix-art/result_templates/default.html
index 60ff502c8..ada81e5a3 100644
--- a/searx/templates/pix-art/result_templates/default.html
+++ b/searx/templates/pix-art/result_templates/default.html
@@ -1,6 +1,7 @@
-<a href="{{ result.url }}" title="{{ result.title | striptags }}">
+<a href="{{ result.url }}" title="{{ result.title | striptags }}" rel="noreferrer">
<canvas id="canvas-{{ pageno }}-{{ index }}" class="icon" width="16" height="16"></canvas>
</a>
<script type="text/javascript">
favicons[{{ pageno }}][{{ index }}] = 'http://{{ result.url | extract_domain }}/favicon.ico';
-</script> \ No newline at end of file
+</script>
+
diff --git a/searx/templates/pix-art/result_templates/images.html b/searx/templates/pix-art/result_templates/images.html
index e06dcc194..d85f841ae 100644
--- a/searx/templates/pix-art/result_templates/images.html
+++ b/searx/templates/pix-art/result_templates/images.html
@@ -1,6 +1,6 @@
<div class="image_result">
<p>
- <a href="{{ result.img_src }}"><img src="{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}" /></a>
- <span class="url"><a href="{{ result.url }}" class="small_font">{{ _('original context') }}</a></span>
+ <a href="{{ result.img_src }}" rel="noreferrer"><img src="{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}" /></a>
+ <span class="url"><a href="{{ result.url }}" rel="noreferrer" class="small_font">{{ _('original context') }}</a></span>
</p>
</div>