Skip to content

Commit

Permalink
prevent phishing attacks by setting noopener on external links
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgawel committed Aug 26, 2016
1 parent 777a4e8 commit 7ff82e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helios/templates/election_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h3 class="title">{{ election.name }}
</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;">
Expand Down
2 changes: 1 addition & 1 deletion heliosbooth/templates/question.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{#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>
Expand Down

0 comments on commit 7ff82e7

Please sign in to comment.