From fb24228ac819f4ec49d777706c06c9f26ea9f5eb Mon Sep 17 00:00:00 2001 From: zabous Date: Fri, 25 Jul 2025 09:26:08 +0200 Subject: [PATCH] FIX duplicate attribute name in error message (Response.php) Response.php; FIX duplicate attribute name in error message "Found an Attribute element with duplicated ...." --- lib/Saml2/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Saml2/Response.php b/lib/Saml2/Response.php index 519af8e0..1831a035 100644 --- a/lib/Saml2/Response.php +++ b/lib/Saml2/Response.php @@ -795,7 +795,7 @@ private function _getAttributesByKeyName($keyName = "Name") if (in_array($attributeKeyName, array_keys($attributes), true)) { if (!$allowRepeatAttributeName) { throw new OneLogin_Saml2_ValidationError( - "Found an Attribute element with duplicated ".$keyName, + "Found an Attribute element with duplicated ".$attributeKeyName, OneLogin_Saml2_ValidationError::DUPLICATED_ATTRIBUTE_NAME_FOUND ); }