Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

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(){
$promptMessage = '<strong>'.getLocalString('make_selection').'</strong>';
if (isset($_GET['target']) && preg_match('|:/|', $_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'])){
$promptMessage = sprintf(getLocalString('access_host'), getHostNameFromURI($_GET['entityID']));
} else if (isset($_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']);
$defaultSelected = ($selectedIDP == '-') ? 'selected="selected"' : '';
......@@ -825,7 +829,7 @@ SCRIPT;
echo <<<SCRIPT
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%;">');
// 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