Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
5a0a9c8e
Commit
5a0a9c8e
authored
Jun 04, 2015
by
Rajesh Taneja
Committed by
Andrew Nicols
Jun 04, 2015
Browse files
MDL-47995 lib: encode title properly, before additing it to image title
parent
c2a0ce47
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/resourcelib.php
View file @
5a0a9c8e
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment