From 89bda8d6b9e9690c6f4f5b91bbfb6d1fb62a911a Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Mon, 17 Dec 2007 14:57:04 +0000 Subject: [PATCH] SAML2:AuthnResponse - Changed getInResponseTo() to use class constant SAML2_PROTOCOL_NS instead of string. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@121 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/XML/SAML20/AuthnResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SimpleSAML/XML/SAML20/AuthnResponse.php b/lib/SimpleSAML/XML/SAML20/AuthnResponse.php index c97759c50..0d7de669a 100644 --- a/lib/SimpleSAML/XML/SAML20/AuthnResponse.php +++ b/lib/SimpleSAML/XML/SAML20/AuthnResponse.php @@ -356,7 +356,7 @@ class SimpleSAML_XML_SAML20_AuthnResponse extends SimpleSAML_XML_AuthnResponse { assert('$dom instanceof DOMDocument'); $xPath = new DOMXpath($dom); - $xPath->registerNamespace('samlp', 'urn:oasis:names:tc:SAML:2.0:protocol'); + $xPath->registerNamespace('samlp', self::SAML2_PROTOCOL_NS); $result = $xPath->query('/samlp:Response/@InResponseTo'); if($result->length === 0) { -- GitLab