Fixed a referer leak

This commit is contained in:
Raphael Michel
2016-09-14 10:34:20 +02:00
parent 5c791e7fab
commit f128a5f559
5 changed files with 35 additions and 2 deletions

View File

@@ -27,6 +27,7 @@
{% endcompress %}
{{ html_head|safe }}
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="referrer" content="origin">
<link rel="icon" href="{% static "pretixbase/img/favicon.ico" %}">
</head>
<body data-locale="{{ request.LANGUAGE_CODE }}">

View File

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