Skip to content
Snippets Groups Projects
Commit 61230287 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Fix parsing of entity attributes

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2721 44740490-163a-0410-bde0-09ae8108e29a
parent 5fba3f92
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,13 @@ class SAML2_XML_saml_AttributeValue {
return $v;
}
/*
* Returns a plain text content of the attribute value.
*/
public function getString() {
return $this->element->textContent;
}
/**
* Convert this attribute value to a string.
......
......@@ -904,7 +904,9 @@ class SimpleSAML_Metadata_SAMLParser {
}
$values = array();
foreach($attr->AttributeValue AS $attrvalue) $values[] = (string) $attrvalue;
foreach($attr->AttributeValue AS $attrvalue) {
$values[] = $attrvalue->getString();
}
$ret['EntityAttributes'][$name] = $values;
}
......
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