Skip to content
Snippets Groups Projects
Commit 4202076a authored by Olav Morken's avatar Olav Morken
Browse files

SAML2: Support XML attribute values.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1625 44740490-163a-0410-bde0-09ae8108e29a
parent 3012bed3
No related branches found
No related tags found
No related merge requests found
......@@ -1065,7 +1065,15 @@ class SAML2_Assertion implements SAML2_SignedElement {
if ($type !== NULL) {
$attributeValue->setAttributeNS(SAML2_Const::NS_XSI, 'xsi:type', $type);
}
$attributeValue->appendChild($document->createTextNode($value));
if ($value instanceof DOMNodeList) {
for ($i = 0; $i < $value->length; $i++) {
$node = $document->importNode($value->item($i), TRUE);
$attributeValue->appendChild($node);
}
} else {
$attributeValue->appendChild($document->createTextNode($value));
}
}
}
}
......
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