core: fix pre-hydrated config not being escaped properly
closes #3442 Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
c900411d5a
commit
198c940a80
|
@ -10,8 +10,8 @@
|
||||||
<script>
|
<script>
|
||||||
window.authentik = {};
|
window.authentik = {};
|
||||||
window.authentik.locale = "{{ tenant.default_locale }}";
|
window.authentik.locale = "{{ tenant.default_locale }}";
|
||||||
window.authentik.config = JSON.parse('{{ config_json|safe }}');
|
window.authentik.config = JSON.parse('{{ config_json|escapejs }}');
|
||||||
window.authentik.tenant = JSON.parse('{{ tenant_json|safe }}');
|
window.authentik.tenant = JSON.parse('{{ tenant_json|escapejs }}');
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
<script>
|
<script>
|
||||||
window.authentik = {};
|
window.authentik = {};
|
||||||
window.authentik.locale = "{{ tenant.default_locale }}";
|
window.authentik.locale = "{{ tenant.default_locale }}";
|
||||||
window.authentik.config = JSON.parse( '{{ config_json|safe }}');
|
window.authentik.config = JSON.parse('{{ config_json|escapejs }}');
|
||||||
window.authentik.tenant = JSON.parse('{{ tenant_json|safe }}');
|
window.authentik.tenant = JSON.parse('{{ tenant_json|escapejs }}');
|
||||||
window.authentik.flow = {
|
window.authentik.flow = {
|
||||||
"layout": "{{ flow.layout }}",
|
"layout": "{{ flow.layout }}",
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
<script>
|
<script>
|
||||||
window.authentik = {};
|
window.authentik = {};
|
||||||
window.authentik.locale = "{{ tenant.default_locale }}";
|
window.authentik.locale = "{{ tenant.default_locale }}";
|
||||||
window.authentik.config = JSON.parse('{{ config_json|safe }}');
|
window.authentik.config = JSON.parse('{{ config_json|escapejs }}');
|
||||||
window.authentik.tenant = JSON.parse('{{ tenant_json|safe }}');
|
window.authentik.tenant = JSON.parse('{{ tenant_json|escapejs }}');
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Reference in a new issue