diff options
Diffstat (limited to 'lib/SAML2')
-rw-r--r-- | lib/SAML2/Utils.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/SAML2/Utils.php b/lib/SAML2/Utils.php index e2ae335..afcd53e 100644 --- a/lib/SAML2/Utils.php +++ b/lib/SAML2/Utils.php @@ -59,6 +59,10 @@ class SAML2_Utils { if ($signedNode->isSameNode($root)) { $rootSigned = TRUE; break; + } elseif ($root->parentNode instanceof DOMDocument && $signedNode->isSameNode($root->ownerDocument)) { + /* $root is the root element of a signed document. */ + $rootSigned = TRUE; + break; } } if (!$rootSigned) { |