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

SAML2_Utils: Handle signatures of the DOMDocument element.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2252 44740490-163a-0410-bde0-09ae8108e29a
parent c31d79f3
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,10 @@ class SAML2_Utils { ...@@ -59,6 +59,10 @@ class SAML2_Utils {
if ($signedNode->isSameNode($root)) { if ($signedNode->isSameNode($root)) {
$rootSigned = TRUE; $rootSigned = TRUE;
break; break;
} elseif ($root->parentNode instanceof DOMDocument && $signedNode->isSameNode($root->ownerDocument)) {
/* $root is the root element of a signed document. */
$rootSigned = TRUE;
break;
} }
} }
if (!$rootSigned) { if (!$rootSigned) {
......
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