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
9f5861e4
Commit
9f5861e4
authored
Sep 05, 2017
by
Robert Lyon
Committed by
Gerrit Code Review
Sep 05, 2017
Browse files
Merge "Bug 1707076: escape skin titles to display" into 16.10_STABLE
parents
0afc1a25
43d3ee28
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/skin.php
View file @
9f5861e4
...
...
@@ -386,7 +386,6 @@ class Skin {
);
}
/**
* Gets all site skins
* @return array
...
...
htdocs/theme/raw/templates/view/skin.tpl
View file @
9f5861e4
...
...
@@ -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