We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3d7e959 + dc885d1 commit b5a3b4aCopy full SHA for b5a3b4a
1 file changed
idp/sso.php
@@ -89,10 +89,12 @@
89
// Construct attributes in XML.
90
$attributexml = '';
91
foreach ((array)$attributes as $name => $value) {
92
- $attributexml .= '<saml:Attribute Name="' . $name .
93
- '" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">' .
94
- '<saml:AttributeValue>' . htmlspecialchars($value) . '</saml:AttributeValue>' .
95
- '</saml:Attribute>' . "\n";
+ if (is_string($value)) {
+ $attributexml .= '<saml:Attribute Name="' . $name .
+ '" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">' .
+ '<saml:AttributeValue>' . htmlspecialchars($value) . '</saml:AttributeValue>' .
96
+ '</saml:Attribute>' . "\n";
97
+ }
98
}
99
$email = htmlspecialchars($USER->email);
100
// Construct XML without signature.
0 commit comments