From a5c4857902852e250ec4ae4ee77940878fdf90af Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Tue, 20 Apr 2010 11:59:24 +0000 Subject: [PATCH] SAML2_Utils: Handle signatures of the DOMDocument element. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2252 44740490-163a-0410-bde0-09ae8108e29a --- lib/SAML2/Utils.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/SAML2/Utils.php b/lib/SAML2/Utils.php index e2ae33502..afcd53ec6 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) { -- GitLab