Skip to content
Snippets Groups Projects
Commit 74c132e9 authored by Ben Adida's avatar Ben Adida Committed by GitHub
Browse files

Merge pull request #137 from dmgawel/prevent-window-opener

Prevent phishing attacks by setting noopener on external links
parents 777a4e89 7ff82e70
No related branches found
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.
</div>
{% 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 %}
<p align="center" style="font-size: 1.5em;">
......
......@@ -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]] != ""}
&nbsp;&nbsp;
<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>
{#/if}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment