Skip to content

Commit

Permalink
templates: escape templated script value (PROJQUAY-970) (quay#828)
Browse files Browse the repository at this point in the history
Correctly converts Python bool to JS when templating the value of
config flag with Jinja.
  • Loading branch information
kleesc committed Jul 9, 2021
1 parent 4c09559 commit 1c157e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
window.__token = '{{ csrf_token() }}';
window.__kubernetes_namespace = {{ kubernetes_namespace|tojson|safe }};
window.__registry_state = '{{ registry_state }}';
window.__account_recovery_mode = '{{ account_recovery_mode }}';
window.__account_recovery_mode = {{ account_recovery_mode|tojson|safe }};

{% if error_code %}
window.__error_code = {{ error_code }};
Expand Down

0 comments on commit 1c157e2

Please sign in to comment.