Commit 7027d4d7 authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Merge branch 'fix/add-bleach-events' into 'master'

Add bleach to events

Without bleach filtering the description text, it is possible for administrators to add any HTML they want to the description.

See merge request !164
parents 218dbdd8 cb91cdd8
{% extends "base.html" %} {% extends "base.html" %}
{% load i18n static %} {% load i18n static bleach_tags%}
{% block title %}{{ event.title }} — {% trans "Calendar"|capfirst %} — {{ block.super }}{% endblock %} {% block title %}{{ event.title }} — {% trans "Calendar"|capfirst %} — {{ block.super }}{% endblock %}
{% block body %} {% block body %}
<h1>{{ event.title }}</h1> <h1>{{ event.title }}</h1>
<p class="tcenter">{{ event.description|safe }}</p> <p class="tcenter">{{ event.description|bleach }}</p>
{% if messages %} {% if messages %}
{% for message in messages %} {% for message in messages %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment