Replace |safe with |escapejson where appropriate

This commit is contained in:
Mira Weller
2026-07-09 18:08:06 +02:00
parent 430c6dd269
commit ce8c4c649d
7 changed files with 12 additions and 16 deletions
@@ -3,6 +3,7 @@
{% load bootstrap3 %}
{% load compress %}
{% load static %}
{% load escapejson %}
{% block content %}
<form class="form-signin" id="webauthn-form" action="" method="post">
{% csrf_token %}
@@ -43,7 +44,7 @@
{% if jsondata %}
<script type="text/json" id="webauthn-login">
{{ jsondata|safe }}
{{ jsondata|escapejson }}
</script>
{% endif %}
{% compress js %}