MDL-69046 core_contentbank: Escape quotes when showing name

This commit is contained in:
Amaia Anabitarte 2020-09-15 15:33:57 +02:00 committed by Jenkins
parent b8e1eec4c7
commit 66be08216e
2 changed files with 7 additions and 7 deletions

View File

@ -146,17 +146,17 @@ data-region="contentbank">
</div>
{{#contents}}
<div class="cb-listitem"
data-file="{{{ title }}}"
data-name="{{{ name }}}"
data-file="{{ title }}"
data-name="{{ name }}"
data-bytes="{{ bytes }}"
data-timemodified="{{ timemodified }}"
data-type="{{{ type }}}"
data-author="{{{ author }}}">
data-type="{{ type }}"
data-author="{{ author }}">
<div class="cb-file cb-column position-relative">
<div class="cb-thumbnail" role="img" aria-label="{{{ name }}}"
<div class="cb-thumbnail" role="img" aria-label="{{ name }}"
style="background-image: url('{{{ icon }}}');">
</div>
<a href="{{{ link }}}" class="cb-link stretched-link" title="{{{ name }}}">
<a href="{{{ link }}}" class="cb-link stretched-link" title="{{ name }}">
<span class="cb-name word-break-all clamp-2" data-region="cb-content-name">
{{{ name }}}
</span>

View File

@ -26,5 +26,5 @@
}}
<div class="form-check w-100 justify-content-start">
<label for="newname">{{#str}}contentname, core_contentbank{{/str}}</label>
<input type="text" size="5" id="newname" name="newname" value="{{{ name }}}" class="form-control text-ltr">
<input type="text" size="5" id="newname" name="newname" value="{{ name }}" class="form-control text-ltr">
</div>