Skip to content
Snippets Groups Projects
Commit 7ff82e70 authored by Dawid Gaweł's avatar Dawid Gaweł
Browse files

prevent phishing attacks by setting noopener on external links

parent 777a4e89
Branches
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ this {{election.election_type}} is <u>not</u> featured on the front page. ...@@ -46,7 +46,7 @@ this {{election.election_type}} is <u>not</u> featured on the front page.
</div> </div>
{% if election.election_info_url %} {% if election.election_info_url %}
<p style="font-size:1.5em;">[<a target="_blank" href="{{election.election_info_url}}">download candidate bios &amp; statements</a>]</p> <p style="font-size:1.5em;">[<a target="_blank" href="{{election.election_info_url}}" rel="noopener noreferrer">download candidate bios &amp; statements</a>]</p>
{% endif %} {% endif %}
<p align="center" style="font-size: 1.5em;"> <p align="center" style="font-size: 1.5em;">
......
...@@ -30,7 +30,7 @@ as many as you approve of ...@@ -30,7 +30,7 @@ as many as you approve of
{#if $T.question.answer_urls && $T.question.answer_urls[$T.answer_ordering[$T.answer$index]] && $T.question.answer_urls[$T.answer_ordering[$T.answer$index]] != ""} {#if $T.question.answer_urls && $T.question.answer_urls[$T.answer_ordering[$T.answer$index]] && $T.question.answer_urls[$T.answer_ordering[$T.answer$index]] != ""}
&nbsp;&nbsp; &nbsp;&nbsp;
<span style="font-size: 12pt;"> <span style="font-size: 12pt;">
[<a target="_blank" href="{$T.question.answer_urls[$T.answer_ordering[$T.answer$index]]}">more info</a>] [<a target="_blank" href="{$T.question.answer_urls[$T.answer_ordering[$T.answer$index]]}" rel="noopener noreferrer">more info</a>]
</span> </span>
{#/if} {#/if}
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment