Skip to content

Commit fb24228

Browse files
authored
FIX duplicate attribute name in error message (Response.php)
Response.php; FIX duplicate attribute name in error message "Found an Attribute element with duplicated ...."
1 parent 3678f2c commit fb24228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Saml2/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ private function _getAttributesByKeyName($keyName = "Name")
795795
if (in_array($attributeKeyName, array_keys($attributes), true)) {
796796
if (!$allowRepeatAttributeName) {
797797
throw new OneLogin_Saml2_ValidationError(
798-
"Found an Attribute element with duplicated ".$keyName,
798+
"Found an Attribute element with duplicated ".$attributeKeyName,
799799
OneLogin_Saml2_ValidationError::DUPLICATED_ATTRIBUTE_NAME_FOUND
800800
);
801801
}

0 commit comments

Comments
 (0)