Skip to content

Commit

Permalink
MDL-69046 core_contentbank: Escape quotes when showing name
Browse files Browse the repository at this point in the history
  • Loading branch information
Amaia Anabitarte authored and Jenkins committed Nov 3, 2020
1 parent b8e1eec commit 66be082
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions contentbank/templates/bankcontent.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion contentbank/templates/renamecontent.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 66be082

Please sign in to comment.