mirror of
https://github.com/pretix/pretix.git
synced 2026-05-19 17:34:03 +00:00
[SECURITY] Fix (non-exploitable) XSS issue
This commit is contained in:
@@ -74,17 +74,17 @@
|
|||||||
{{ c.datetime|date:"SHORT_DATETIME_FORMAT" }}
|
{{ c.datetime|date:"SHORT_DATETIME_FORMAT" }}
|
||||||
{% if c.type == "exit" %}
|
{% if c.type == "exit" %}
|
||||||
{% if c.auto_checked_in %}
|
{% if c.auto_checked_in %}
|
||||||
<span class="fa fa-fw fa-hourglass-end" data-toggle="tooltip_html"
|
<span class="fa fa-fw fa-hourglass-end" data-toggle="tooltip"
|
||||||
title="{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Automatically marked not present: {{ date }}{% endblocktrans %}"></span>
|
title="{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Automatically marked not present: {{ date }}{% endblocktrans %}"></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif c.forced and c.successful %}
|
{% elif c.forced and c.successful %}
|
||||||
<span class="fa fa-fw fa-warning" data-toggle="tooltip_html"
|
<span class="fa fa-fw fa-warning" data-toggle="tooltip"
|
||||||
title="{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Additional entry scan: {{ date }}{% endblocktrans %}"></span>
|
title="{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Additional entry scan: {{ date }}{% endblocktrans %}"></span>
|
||||||
{% elif c.forced and not c.successful %}
|
{% elif c.forced and not c.successful %}
|
||||||
<br>
|
<br>
|
||||||
<small class="text-muted">{% trans "Failed in offline mode" %}</small>
|
<small class="text-muted">{% trans "Failed in offline mode" %}</small>
|
||||||
{% elif c.auto_checked_in %}
|
{% elif c.auto_checked_in %}
|
||||||
<span class="fa fa-fw fa-magic" data-toggle="tooltip_html"
|
<span class="fa fa-fw fa-magic" data-toggle="tooltip"
|
||||||
title="{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Automatically checked in: {{ date }}{% endblocktrans %}"></span>
|
title="{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Automatically checked in: {{ date }}{% endblocktrans %}"></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
<div class="quotabox availability" data-toggle="tooltip_html" data-placement="top"
|
<div class="quotabox availability" data-toggle="tooltip_html" data-placement="top"
|
||||||
title="{% trans "Quota:" %} {{ q.name }}<br>{% blocktrans with date=q.cached_availability_time|date:"SHORT_DATETIME_FORMAT" %}Numbers as of {{ date }}{% endblocktrans %}">
|
title="{% trans "Quota:" %} {{ q.name|force_escape|force_escape }}<br>{% blocktrans with date=q.cached_availability_time|date:"SHORT_DATETIME_FORMAT" %}Numbers as of {{ date }}{% endblocktrans %}">
|
||||||
{% if q.size|default_if_none:"NONE" == "NONE" %}
|
{% if q.size|default_if_none:"NONE" == "NONE" %}
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div class="progress-bar progress-bar-success progress-bar-100">
|
<div class="progress-bar progress-bar-success progress-bar-100">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
<a class="quotabox" data-toggle="tooltip_html" data-placement="top"
|
<a class="quotabox" data-toggle="tooltip_html" data-placement="top"
|
||||||
title="{% trans "Quota:" %} {{ q.name }}{% if q.cached_avail.1 is not None %}<br>{% blocktrans with num=q.cached_avail.1 %}Currently available: {{ num }}{% endblocktrans %}{% endif %}"
|
title="{% trans "Quota:" %} {{ q.name|force_escape|force_escape }}{% if q.cached_avail.1 is not None %}<br>{% blocktrans with num=q.cached_avail.1 %}Currently available: {{ num }}{% endblocktrans %}{% endif %}"
|
||||||
href="{% url "control:event.items.quotas.show" event=q.event.slug organizer=q.event.organizer.slug quota=q.pk %}">
|
href="{% url "control:event.items.quotas.show" event=q.event.slug organizer=q.event.organizer.slug quota=q.pk %}">
|
||||||
{% if q.size|default_if_none:"NONE" == "NONE" %}
|
{% if q.size|default_if_none:"NONE" == "NONE" %}
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
|
|||||||
@@ -360,19 +360,19 @@
|
|||||||
{% if line.checkins.all %}
|
{% if line.checkins.all %}
|
||||||
{% for c in line.all_checkins.all %}
|
{% for c in line.all_checkins.all %}
|
||||||
{% if not c.successful %}
|
{% if not c.successful %}
|
||||||
<span class="fa fa-fw fa-exclamation-circle text-danger" data-toggle="tooltip_html" title="{{ c.list.name }}<br>{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Denied scan: {{ date }}{% endblocktrans %}<br>{{ c.get_error_reason_display }}{% if c.gate %}<br>{{ c.gate }}{% endif %}"></span>
|
<span class="fa fa-fw fa-exclamation-circle text-danger" data-toggle="tooltip_html" title="{{ c.list.name|force_escape|force_escape }}<br>{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Denied scan: {{ date }}{% endblocktrans %}<br>{{ c.get_error_reason_display }}{% if c.gate %}<br>{{ c.gate }}{% endif %}"></span>
|
||||||
{% elif c.type == "exit" %}
|
{% elif c.type == "exit" %}
|
||||||
{% if c.auto_checked_in %}
|
{% if c.auto_checked_in %}
|
||||||
<span class="fa fa-fw text-success fa-hourglass-end" data-toggle="tooltip_html" title="{{ c.list.name }}<br>{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Automatically marked not present: {{ date }}{% endblocktrans %}"></span>
|
<span class="fa fa-fw text-success fa-hourglass-end" data-toggle="tooltip_html" title="{{ c.list.name|force_escape|force_escape }}<br>{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Automatically marked not present: {{ date }}{% endblocktrans %}"></span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="fa fa-fw text-success fa-sign-out" data-toggle="tooltip_html" title="{{ c.list.name }}<br>{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Exit scan: {{ date }}{% endblocktrans %}{% if c.gate %}<br>{{ c.gate }}{% endif %}"></span>
|
<span class="fa fa-fw text-success fa-sign-out" data-toggle="tooltip_html" title="{{ c.list.name|force_escape|force_escape }}<br>{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Exit scan: {{ date }}{% endblocktrans %}{% if c.gate %}<br>{{ c.gate }}{% endif %}"></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif c.forced %}
|
{% elif c.forced %}
|
||||||
<span class="fa fa-fw fa-warning text-warning" data-toggle="tooltip_html" title="{{ c.list.name }}<br>{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Additional entry scan: {{ date }}{% endblocktrans %}{% if c.gate %}<br>{{ c.gate }}{% endif %}"></span>
|
<span class="fa fa-fw fa-warning text-warning" data-toggle="tooltip_html" title="{{ c.list.name|force_escape|force_escape }}<br>{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Additional entry scan: {{ date }}{% endblocktrans %}{% if c.gate %}<br>{{ c.gate }}{% endif %}"></span>
|
||||||
{% elif c.auto_checked_in %}
|
{% elif c.auto_checked_in %}
|
||||||
<span class="fa fa-fw fa-magic text-success" data-toggle="tooltip_html" title="{{ c.list.name }}<br>{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Automatically checked in: {{ date }}{% endblocktrans %}{% if c.gate %}<br>{{ c.gate }}{% endif %}"></span>
|
<span class="fa fa-fw fa-magic text-success" data-toggle="tooltip_html" title="{{ c.list.name|force_escape|force_escape }}<br>{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Automatically checked in: {{ date }}{% endblocktrans %}{% if c.gate %}<br>{{ c.gate }}{% endif %}"></span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="fa fa-fw fa-check text-success" data-toggle="tooltip_html" title="{{ c.list.name }}<br>{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Entry scan: {{ date }}{% endblocktrans %}{% if c.gate %}<br>{{ c.gate }}{% endif %}"></span>
|
<span class="fa fa-fw fa-check text-success" data-toggle="tooltip_html" title="{{ c.list.name|force_escape|force_escape }}<br>{% blocktrans trimmed with date=c.datetime|date:'SHORT_DATETIME_FORMAT' %}Entry scan: {{ date }}{% endblocktrans %}{% if c.gate %}<br>{{ c.gate }}{% endif %}"></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<div class="form-horizontal stripe-container">
|
<div class="form-horizontal stripe-container">
|
||||||
{% if is_moto %}
|
{% if is_moto %}
|
||||||
<h1>
|
<h1>
|
||||||
<span class="label label-info pull-right flip" data-toggle="tooltip_html" title="{% trans "This transaction will be marked as Mail Order/Telephone Order, exempting it from Strong Customer Authentication (SCA) whenever possible" %}">MOTO</span>
|
<span class="label label-info pull-right flip" data-toggle="tooltip" title="{% trans "This transaction will be marked as Mail Order/Telephone Order, exempting it from Strong Customer Authentication (SCA) whenever possible" %}">MOTO</span>
|
||||||
</h1>
|
</h1>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -675,7 +675,21 @@ $(function () {
|
|||||||
|
|
||||||
$('[data-toggle="tooltip"]').tooltip();
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
$('[data-toggle="tooltip_html"]').tooltip({
|
$('[data-toggle="tooltip_html"]').tooltip({
|
||||||
'html': true
|
'html': true,
|
||||||
|
'whiteList': {
|
||||||
|
// Global attributes allowed on any supplied element below.
|
||||||
|
'*': ['class', 'dir', 'id', 'lang', 'role'],
|
||||||
|
b: [],
|
||||||
|
br: [],
|
||||||
|
code: [],
|
||||||
|
div: [], // required for template
|
||||||
|
h3: ['class', 'role'], // required for template
|
||||||
|
i: [],
|
||||||
|
small: [],
|
||||||
|
span: [],
|
||||||
|
strong: [],
|
||||||
|
u: [],
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var url = document.location.toString();
|
var url = document.location.toString();
|
||||||
|
|||||||
Reference in New Issue
Block a user