Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
c17f02eb
Commit
c17f02eb
authored
Apr 30, 2019
by
Cecilia Vela Gurovic
Committed by
Gerrit Code Review
Apr 30, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Security bug 1819547: Need to escape collection title on matrix page"
parents
9928ab13
51726c19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
htdocs/module/framework/matrix.php
htdocs/module/framework/matrix.php
+1
-2
No files found.
htdocs/module/framework/matrix.php
View file @
c17f02eb
...
...
@@ -37,7 +37,6 @@ if (!$collection->has_framework()) {
// The collection does have a framework associated but we are not allowed
// to see the matrix page so show an error page with link to first page of collection.
$smarty
=
smarty
();
$smarty
->
assign
(
'maintitle'
,
$collection
->
get
(
'name'
));
$smarty
->
assign
(
'owner'
,
$collection
->
get
(
'owner'
));
$smarty
->
assign
(
'PAGEHEADING'
,
null
);
$smarty
->
assign
(
'name'
,
get_string
(
'frameworkmissing'
,
'module.framework'
));
...
...
@@ -199,7 +198,7 @@ $inlinejs = <<<EOF
EOF;
$smarty
->
assign
(
'INLINEJAVASCRIPT'
,
$inlinejs
);
$smarty
->
assign
(
'maintitle'
,
$collection
->
get
(
'name'
));
$smarty
->
assign
(
'maintitle'
,
hsc
(
$collection
->
get
(
'name'
))
)
;
$smarty
->
assign
(
'collectionid'
,
$collection
->
get
(
'id'
));
$smarty
->
assign
(
'owner'
,
$owner
);
$smarty
->
assign
(
'PAGEHEADING'
,
null
);
...
...
Write
Preview
Markdown
is supported
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