MDL-82558 h5p: escape template error/exception content.

This commit is contained in:
Paul Holden
2024-08-07 04:13:54 +00:00
committed by Jenkins
parent 0b4100c13e
commit 6f8db95ccf
+3 -3
View File
@@ -43,17 +43,17 @@
<div class="container mt-5">
{{#exception}}
<div class="alert alert-block fade in alert-danger my-2" role="alert">
{{{ exception }}}
{{ . }}
</div>
{{/exception}}
{{#info}}
<div class="alert alert-block fade in alert-info my-2" role="alert">
{{{ . }}}
{{ . }}
</div>
{{/info}}
{{#error}}
<div class="alert alert-block fade in alert-warning my-2" role="alert">
{{#code}}{{{code}}} : {{/code}}{{{ message }}}
{{#code}} {{ . }} : {{/code}} {{ message }}
</div>
{{/error}}
</div>