Skip to content

Commit e4d91b7

Browse files
committed
Renamed a var
1 parent 6bbf365 commit e4d91b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Saml2/Response.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -646,13 +646,13 @@ protected function _queryAssertion($assertionXpath)
646646
if (!$assertionReferenceNode) {
647647
// is the response signed as a whole?
648648
$signatureQuery = '/samlp:Response/ds:Signature/ds:SignedInfo/ds:Reference';
649-
$assertionReferenceNode = $xpath->query($signatureQuery)->item(0);
650-
if ($assertionReferenceNode) {
651-
$uri = $assertionReferenceNode->attributes->getNamedItem('URI')->nodeValue;
649+
$responseReferenceNode = $xpath->query($signatureQuery)->item(0);
650+
if ($responseReferenceNode) {
651+
$uri = $responseReferenceNode->attributes->getNamedItem('URI')->nodeValue;
652652
if (empty($uri)) {
653-
$id = $assertionReferenceNode->parentNode->parentNode->parentNode->attributes->getNamedItem('ID')->nodeValue;
653+
$id = $responseReferenceNode->parentNode->parentNode->parentNode->attributes->getNamedItem('ID')->nodeValue;
654654
} else {
655-
$id = substr($assertionReferenceNode->attributes->getNamedItem('URI')->nodeValue, 1);
655+
$id = substr($responseReferenceNode->attributes->getNamedItem('URI')->nodeValue, 1);
656656
}
657657
$nameQuery = "/samlp:Response[@ID='$id']/saml:Assertion" . $assertionXpath;
658658
} else {

0 commit comments

Comments
 (0)