Skip to content
Snippets Groups Projects
Commit 49c4e1a5 authored by Olav Morken's avatar Olav Morken
Browse files

Status template: Escape output of attributes.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@108 44740490-163a-0410-bde0-09ae8108e29a
parent 19f98afc
No related branches found
No related tags found
No related merge requests found
...@@ -21,13 +21,13 @@ ...@@ -21,13 +21,13 @@
$attributes = $data['attributes']; $attributes = $data['attributes'];
foreach ($attributes AS $name => $value) { foreach ($attributes AS $name => $value) {
if (sizeof($value) > 1) { if (sizeof($value) > 1) {
echo '<tr><td>' . $name . '</td><td><ul>'; echo '<tr><td>' . htmlspecialchars($name) . '</td><td><ul>';
foreach ($value AS $v) { foreach ($value AS $v) {
echo '<li>' . $v . '</li>'; echo '<li>' . htmlspecialchars($v) . '</li>';
} }
echo '</ul></td></tr>'; echo '</ul></td></tr>';
} else { } else {
echo '<tr><td>' . $name . '</td><td>' . $value[0] . '</td></tr>'; echo '<tr><td>' . htmlspecialchars($name) . '</td><td>' . htmlspecialchars($value[0]) . '</td></tr>';
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment