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

SAMLParser: Fix incorrect assertion & documentation in parseElement().

The parseElement()-function actually accepts a
SAML2_XML_md_EntityDescriptor object, not a DOMElement.

Thanks to François Kooman for reporting this bug and supplying a patch!

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3228 44740490-163a-0410-bde0-09ae8108e29a
parent 2d1fc98f
No related branches found
No related tags found
No related merge requests found
......@@ -223,13 +223,13 @@ class SimpleSAML_Metadata_SAMLParser {
/**
* This function parses a DOMElement which represents a EntityDescriptor element.
* This function parses a SAML2_XML_md_EntityDescriptor object which represents a EntityDescriptor element.
*
* @param $entityElement A DOMElement which represents a EntityDescriptor element.
* @param $entityElement A SAML2_XML_md_EntityDescriptor object which represents a EntityDescriptor element.
* @return An instance of this class with the metadata loaded.
*/
public static function parseElement($entityElement) {
assert('$entityElement instanceof DOMElement');
assert('$entityElement instanceof SAML2_XML_md_EntityDescriptor');
return new SimpleSAML_Metadata_SAMLParser($entityElement, NULL);
}
......
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