Commit c88df9fe authored by haemmer's avatar haemmer

Federation operator domain names like switch.ch and dfn.de which are part of...

Federation operator domain names like switch.ch and dfn.de which are part of all URNs are now treated as in previous versions
parent c19f56bf
......@@ -201,7 +201,9 @@ function getDomainNameFromURIHint(){
// Return first matching IdP entityID that contains the client domain name
foreach ($IDProviders as $key => $value){
if (preg_match('/'.$clientDomainName.'/', $key)){
if (
preg_match('/^http.+'.$clientDomainName.'/', $key)
|| preg_match('/^urn:.+'.$clientDomainName.'$/', $key)){
return $key;
}
}
......
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