Commit b384674d authored by haemmer's avatar haemmer
Browse files

Fixed minor HTML error

Hostname of return/target URL is now shown instead of entityID
parent 1638ee7e
...@@ -44,10 +44,14 @@ function printWAYF(){ ...@@ -44,10 +44,14 @@ function printWAYF(){
$promptMessage = '<strong>'.getLocalString('make_selection').'</strong>'; $promptMessage = '<strong>'.getLocalString('make_selection').'</strong>';
if (isset($_GET['target']) && preg_match('|:/|', $_GET['target'])){ if (isset($_GET['target']) && preg_match('|:/|', $_GET['target'])){
$promptMessage = sprintf(getLocalString('access_target'), $_GET['target'], $_GET['target']); $promptMessage = sprintf(getLocalString('access_target'), $_GET['target'], $_GET['target']);
} else if (isset($_GET['return'])){
$promptMessage = sprintf(getLocalString('access_host'), getHostNameFromURI($_GET['return']));
} else if (isset($_GET['entityID'])){ } else if (isset($_GET['entityID'])){
$promptMessage = sprintf(getLocalString('access_host'), getHostNameFromURI($_GET['entityID'])); $promptMessage = sprintf(getLocalString('access_host'), getHostNameFromURI($_GET['entityID']));
} else if (isset($_GET['shire'])){ } else if (isset($_GET['shire'])){
$promptMessage = sprintf(getLocalString('access_host'), getHostNameFromURI($_GET['shire'])); $promptMessage = sprintf(getLocalString('access_host'), getHostNameFromURI($_GET['shire']));
} else {
$promptMessage = sprintf(getLocalString('access_host'), 'unknown');
} }
$actionURL = $_SERVER['SCRIPT_NAME'].'?'.htmlentities($_SERVER['QUERY_STRING']); $actionURL = $_SERVER['SCRIPT_NAME'].'?'.htmlentities($_SERVER['QUERY_STRING']);
$defaultSelected = ($selectedIDP == '-') ? 'selected="selected"' : ''; $defaultSelected = ($selectedIDP == '-') ? 'selected="selected"' : '';
...@@ -825,7 +829,7 @@ SCRIPT; ...@@ -825,7 +829,7 @@ SCRIPT;
echo <<<SCRIPT echo <<<SCRIPT
writeHTML(form_start); writeHTML(form_start);
writeHTML('<input name="request_type" type="hidden" value="embedded" />'); writeHTML('<input name="request_type" type="hidden" value="embedded">');
writeHTML('<select id="user_idp" name="user_idp" style="margin-top: 15px;margin-bottom: 10px; width: 100%;">'); writeHTML('<select id="user_idp" name="user_idp" style="margin-top: 15px;margin-bottom: 10px; width: 100%;">');
// Get local cookie // Get local cookie
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment