Skip to content
Snippets Groups Projects
Unverified Commit 241aae04 authored by Svein-Tore Griff With's avatar Svein-Tore Griff With Committed by GitHub
Browse files

Merge pull request #501 from benfes/fix-xss-issue-on-index

Fixed potential XSS issue
parents f27ace99 9c61fdd3
No related branches found
No related tags found
No related merge requests found
...@@ -128,6 +128,7 @@ foreach ($h5ps as $h5p) { ...@@ -128,6 +128,7 @@ foreach ($h5ps as $h5p) {
// Activity name. // Activity name.
$attrs = ($h5p->visible ? '' : ' class="dimmed"'); $attrs = ($h5p->visible ? '' : ' class="dimmed"');
$h5p->name = format_string($h5p->name);
$row[] = "<a href=\"view.php?id={$h5p->coursemodule}\"{$attrs}>{$h5p->name}</a>"; $row[] = "<a href=\"view.php?id={$h5p->coursemodule}\"{$attrs}>{$h5p->name}</a>";
// Activity type. // Activity type.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment