Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
43d3ee28
Commit
43d3ee28
authored
Jul 31, 2017
by
Cecilia Vela Gurovic
Committed by
Robert Lyon
Sep 04, 2017
Browse files
Bug 1707076: escape skin titles to display
behatnotneeded Change-Id: I469f8136e287bb86eb17a32dbed48dec05b87969
parent
af207c8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/skin.php
View file @
43d3ee28
...
...
@@ -386,7 +386,6 @@ class Skin {
);
}
/**
* Gets all site skins
* @return array
...
...
htdocs/theme/raw/templates/view/skin.tpl
View file @
43d3ee28
...
...
@@ -33,7 +33,7 @@
<img
class=
"thumbnail"
src=
"
{
$WWWROOT
}
skin/thumb.php?id=
{
$currentskin
}
"
alt=
"
{
$currenttitle
}
"
>
<ul
class=
"metadata unstyled"
>
<li
class=
"title"
>
<span
class=
"h4 text-midtone"
>
{
$currenttitle
|
safe
}
</span>
<span
class=
"h4 text-midtone"
>
{
$currenttitle
}
</span>
</li>
{
if
$currentmetadata
}
<li
class=
"metadisplayname"
>
...
...
@@ -88,7 +88,7 @@
<a
href=
"
{
$WWWROOT
}
view/skin.php?id=
{
$viewid
}
&skin=
{
$skin
->
id
}
"
>
<img
src=
"
{
$WWWROOT
}
skin/thumb.php?id=
{
$skin
->
id
}
"
class=
"thumbnail"
width=
"180"
alt=
"
{
$skin
->
title
}
"
/>
<div
class=
"lead text-center text-small"
>
{
$skin
->
title
|
safe
}
{
$skin
->
title
}
</div>
</a>
</div>
...
...
@@ -109,7 +109,7 @@
<a
href=
"
{
$WWWROOT
}
view/skin.php?id=
{
$viewid
}
&skin=
{
$skin
->
id
}
"
>
<img
src=
"
{
$WWWROOT
}
skin/thumb.php?id=
{
$skin
->
id
}
"
class=
"thumbnail"
width=
"180"
alt=
"
{
$skin
->
title
}
"
/>
<div
class=
"lead text-center text-small"
>
{
$skin
->
title
|
safe
}
{
$skin
->
title
}
</div>
</a>
</div>
...
...
@@ -130,7 +130,7 @@
<a
href=
"
{
$WWWROOT
}
view/skin.php?id=
{
$viewid
}
&skin=
{
$skin
->
id
}
"
>
<img
src=
"
{
$WWWROOT
}
skin/thumb.php?id=
{
$skin
->
id
}
"
class=
"thumbnail"
width=
"180"
alt=
"
{
$skin
->
title
}
"
/>
<div
class=
"lead text-center text-small"
>
{
$skin
->
title
|
safe
}
{
$skin
->
title
}
</div>
</a>
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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