From ac8fb26744538a5d52160caafeb4ebd0369bbff1 Mon Sep 17 00:00:00 2001 From: zabous Date: Tue, 29 Jul 2025 12:30:36 +0200 Subject: [PATCH] Better duplicate attribute error message - includes $attributeKeyName Better duplicate attribute error message - includes $attributeKeyName --- 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..de8bc168 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 ".$keyName." (".$attributeKeyName.")" , OneLogin_Saml2_ValidationError::DUPLICATED_ATTRIBUTE_NAME_FOUND ); }