Skip to content

Commit 78b1c67

Browse files
committed
bugfix: Special treatment for idpdisc:DiscoveryResponse
1 parent 2a91445 commit 78b1c67

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/SAML2/XML/md/Extensions.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ public static function addList(DOMElement $parent, array $extensions) : void
102102
$parent->appendChild($extElement);
103103

104104
foreach ($extensions as $ext) {
105-
$ext->toXML($extElement);
105+
if ($ext instanceof DiscoveryResponse) {
106+
$ext->toXML($extElement, 'idpdisc:DiscoveryResponse');
107+
} else {
108+
$ext->toXML($extElement);
109+
}
106110
}
107111
}
108112
}

0 commit comments

Comments
 (0)