summaryrefslogtreecommitdiffstats
path: root/lib/SAML2
diff options
context:
space:
mode:
authorOlav Morken <olav.morken@uninett.no>2010-04-20 11:59:24 +0000
committerOlav Morken <olav.morken@uninett.no>2010-04-20 11:59:24 +0000
commita5c4857902852e250ec4ae4ee77940878fdf90af (patch)
tree5e8c39579c0854b9f5a904218daf1c31ca1d2113 /lib/SAML2
parentc31d79f3c208d5a91b640f4296ce894e01aaad50 (diff)
downloadsimplesamlphp-a5c4857902852e250ec4ae4ee77940878fdf90af.zip
simplesamlphp-a5c4857902852e250ec4ae4ee77940878fdf90af.tar.gz
simplesamlphp-a5c4857902852e250ec4ae4ee77940878fdf90af.tar.bz2
SAML2_Utils: Handle signatures of the DOMDocument element.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2252 44740490-163a-0410-bde0-09ae8108e29a
Diffstat (limited to 'lib/SAML2')
-rw-r--r--lib/SAML2/Utils.php4
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) {