Skip to content
Snippets Groups Projects
Commit 86ecc0b7 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Fix for iframe SLO combination of idp and sp initiated...

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1366 44740490-163a-0410-bde0-09ae8108e29a
parent 84e0576b
No related branches found
No related tags found
No related merge requests found
...@@ -96,8 +96,8 @@ function sendResponse() { ...@@ -96,8 +96,8 @@ function sendResponse() {
<div id="requirejavascript" style="display: none"> <div id="requirejavascript" style="display: none">
<?php <?php
#echo('<pre>'); print_r($this->data); exit;
if (array_key_exists('requestername', $this->data)) { if (array_key_exists('requesterName', $this->data)) {
$requestername = is_array($this->data['requesterName']) ? $requestername = is_array($this->data['requesterName']) ?
$this->getTranslation($this->data['requesterName']) : $this->data['requesterName']; $this->getTranslation($this->data['requesterName']) : $this->data['requesterName'];
} }
...@@ -109,9 +109,9 @@ function sendResponse() { ...@@ -109,9 +109,9 @@ function sendResponse() {
<?php <?php
if (array_key_exists('requestername', $this->data)) { if (array_key_exists('requesterName', $this->data)) {
echo('<div><img style="float: left; margin-right: 12px" src="/' . $this->data['baseurlpath'] . 'resources/icons/checkmark48.png" alt="Successful logout" />'); echo('<div><img style="float: left; margin-right: 12px" src="/' . $this->data['baseurlpath'] . 'resources/icons/checkmark48.png" alt="Successful logout" />');
echo('<p style="padding-top: 16px; ">' . $this->t('{logout:loggedoutfrom}', array('%SP%' => '<strong>' .$requestername.'</strong>')) . '</p>'); echo('<p style="padding-top: 16px; ">' . $this->t('{logout:loggedoutfrom}', array('%SP%' => '<strong>' .$requesterName.'</strong>')) . '</p>');
echo('<p style="height: 0px; clear: left;"></p>'); echo('<p style="height: 0px; clear: left;"></p>');
echo('</div>'); echo('</div>');
} }
...@@ -127,7 +127,7 @@ function sendResponse() { ...@@ -127,7 +127,7 @@ function sendResponse() {
echo ' <td><img style="float: left; margin: 3px" src="/' . $this->data['baseurlpath'] . echo ' <td><img style="float: left; margin: 3px" src="/' . $this->data['baseurlpath'] .
'resources/icons/silk/accept.png" alt="Initiated from" /></td>' . "\n"; 'resources/icons/silk/accept.png" alt="Initiated from" /></td>' . "\n";
echo ' <td>' . $this->t('{logout:initiated}') . '</td>'; echo ' <td>' . $this->t('{logout:initiated}') . '</td>';
echo ' <td>' . $requestername . '</td>' ."\n"; echo ' <td>' . $requesterName . '</td>' ."\n";
echo '</tr>' . "\n"; echo '</tr>' . "\n";
*/ */
...@@ -191,8 +191,8 @@ function sendResponse() { ...@@ -191,8 +191,8 @@ function sendResponse() {
<input type="button" id="ok" name="ok" value="<?php echo $this->t('{logout:logout_all}'); ?>" /> <input type="button" id="ok" name="ok" value="<?php echo $this->t('{logout:logout_all}'); ?>" />
<?php <?php
if (array_key_exists('requestername', $this->data)) { if (array_key_exists('requesterName', $this->data)) {
echo '<input type="button" id="cancel" name="cancel" value="' . $this->t('{logout:logout_only}', array('%SP%' => $requestername)) . '" />'; echo '<input type="button" id="cancel" name="cancel" value="' . $this->t('{logout:logout_only}', array('%SP%' => $requesterName)) . '" />';
} else { } else {
echo '<input type="button" id="cancel" name="cancel" value="' . $this->t('{logout:no}') . '" />'; echo '<input type="button" id="cancel" name="cancel" value="' . $this->t('{logout:no}') . '" />';
} }
......
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