Skip to content
Snippets Groups Projects
Commit 28f816f0 authored by Jaime Perez's avatar Jaime Perez
Browse files

Make sure no empty name ends up in remote metadata for IdPs or SPs.

parent d39a5697
No related branches found
No related tags found
No related merge requests found
......@@ -636,7 +636,7 @@ class SimpleSAML_Metadata_SAMLParser {
$this->addExtensions($ret, $spd);
// prioritize mdui:DisplayName as the name if available
if (isset($ret['UIInfo']) && isset($ret['UIInfo']['DisplayName'])) {
if (!empty($ret['UIInfo']['DisplayName'])) {
$ret['name'] = $ret['UIInfo']['DisplayName'];
}
......@@ -705,7 +705,7 @@ class SimpleSAML_Metadata_SAMLParser {
$this->addExtensions($ret, $idp);
// prioritize mdui:DisplayName as the name if available
if (isset($ret['UIInfo']) && isset($ret['UIInfo']['DisplayName'])) {
if (!empty($ret['UIInfo']['DisplayName'])) {
$ret['name'] = $ret['UIInfo']['DisplayName'];
}
......
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