mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Make microdata XSS-safe and subevent-aware
This commit is contained in:
@@ -30,13 +30,6 @@
|
||||
<script type="text/javascript" src="{% static "pretixpresale/js/ui/typocheck.js" %}"></script>
|
||||
<script type="text/javascript" src="{% static "lightbox/js/lightbox.min.js" %}"></script>
|
||||
{% endcompress %}
|
||||
{% if event %}
|
||||
{% autoescape off %}
|
||||
<script type="application/ld+json">
|
||||
{{ event.event_microdata }}
|
||||
</script>
|
||||
{% endautoescape %}
|
||||
{% endif %}
|
||||
<meta name="referrer" content="origin">
|
||||
{{ html_head|safe }}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
@@ -8,6 +8,12 @@
|
||||
{% block title %}{% trans "Presale" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% autoescape off %}
|
||||
<script type="application/ld+json">
|
||||
{{ ev.event_microdata }}
|
||||
</script>
|
||||
{% endautoescape %}
|
||||
{% if show_cart %}
|
||||
<div class="panel panel-primary cart">
|
||||
<div class="panel-heading">
|
||||
|
||||
Reference in New Issue
Block a user