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

discopower: Fix cross-site scripting.

Can be exploited if the site is configured to fetch metadata from an
untrusted source.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2441 44740490-163a-0410-bde0-09ae8108e29a
parent 9ef86337
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ if (!empty($faventry)) {
echo('<div class="favourite">');
echo($this->t('previous_auth'));
echo(' <strong>' . getTranslatedName($this, $faventry) . '</strong>');
echo(' <strong>' . htmlspecialchars(getTranslatedName($this, $faventry)) . '</strong>');
echo('
<form id="idpselectform" method="get" action="' . $this->data['urlpattern'] . '">
<input type="hidden" name="entityID" value="' . htmlspecialchars($this->data['entityID']) . '" />
......@@ -128,7 +128,7 @@ if (!empty($faventry)) {
<input type="hidden" name="returnIDParam" value="' . htmlspecialchars($this->data['returnIDParam']) . '" />
<input type="hidden" name="idpentityid" value="' . htmlspecialchars($faventry['entityid']) . '" />
<input type="submit" name="formsubmit" id="favouritesubmit" value="' . $this->t('login_at') . ' ' . getTranslatedName($this, $faventry) . '" />
<input type="submit" name="formsubmit" id="favouritesubmit" value="' . $this->t('login_at') . ' ' . htmlspecialchars(getTranslatedName($this, $faventry)) . '" />
</form>');
echo('</div>');
......
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