Commit 3bb8fa8b authored by haemmer's avatar haemmer

Show hostname of return URL in case no service name is found in metadata

parent 2f05321f
......@@ -59,14 +59,19 @@ function printWAYF(){
}
}
// Fallback to hostname if no name was available
// Reset service name if it is the same as the entityID
if ($serviceName == $entityID){
$serviceName = '';
}
// Fallback to hostname of return URL if no service name was available
if (empty($serviceName)){
if (isset($_GET['return'])){
$serviceName = getHostNameFromURI($_GET['return']);
} else if (isset($_GET['shire'])){
$serviceName = getHostNameFromURI($_GET['shire']);
} else {
$serviceName = 'unknown';
$serviceName = $entityID;
}
$serviceName = '<span class="hostName">'.$serviceName.'</span>';
} else {
......
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