Use rel="noopener" with target="_blank". (#682)

Required reading: https://mathiasbynens.github.io/rel-noopener/
This commit is contained in:
Tobias Kunze
2017-11-13 18:52:15 +01:00
committed by Raphael Michel
parent 01585877d7
commit e7f38abd77
9 changed files with 11 additions and 9 deletions

View File

@@ -51,7 +51,7 @@
·
{% endif %}
{% for f in footer %}
<a href="{% safelink f.url %}" target="_blank">{{ f.label }}</a>
<a href="{% safelink f.url %}" target="_blank" rel="noopener">{{ f.label }}</a>
&middot;
{% endfor %}
{% include "pretixpresale/base_footer.html" %}

View File

@@ -1,7 +1,7 @@
{% load i18n %}
{% load safelink %}
{% safelink "https://pretix.eu" as pretixurl %}
{% with 'target="_blank" href="'|add:pretixurl|add:'"'|safe as a_attr %}
{% with 'target="_blank" rel="noopener" href="'|add:pretixurl|add:'"'|safe as a_attr %}
{% blocktrans trimmed %}
powered by <a {{ a_attr }}>pretix</a>
{% endblocktrans %}

View File

@@ -66,7 +66,7 @@
<a href="mailto:{{ request.event.settings.contact_mail }}">{% trans "Contact event organizer" %}</a> &middot;
{% endif %}
{% if request.event.settings.imprint_url %}
<a href="{% safelink request.event.settings.imprint_url %}" target="_blank">{% trans "Imprint" %}</a>
<a href="{% safelink request.event.settings.imprint_url %}" target="_blank" rel="noopener">{% trans "Imprint" %}</a>
&middot;
{% endif %}
{% endblock %}