mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
MDL-47995 lib: encode title properly, before additing it to image title
This commit is contained in:
parent
59f7fd42e0
commit
7deb61e7c0
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ function resourcelib_get_extension($fullurl) {
|
|||
function resourcelib_embed_image($fullurl, $title) {
|
||||
$code = '';
|
||||
$code .= '<div class="resourcecontent resourceimg">';
|
||||
$code .= "<img title=\"".strip_tags(format_string($title))."\" class=\"resourceimage\" src=\"$fullurl\" alt=\"\" />";
|
||||
$code .= "<img title=\"".s(strip_tags(format_string($title)))."\" class=\"resourceimage\" src=\"$fullurl\" alt=\"\" />";
|
||||
$code .= '</div>';
|
||||
|
||||
return $code;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue