Skip to content
Snippets Groups Projects
Commit 60f4dddc authored by Olav Morken's avatar Olav Morken
Browse files

Shib13:AuthnResponse - Fix attribute parsing.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@160 44740490-163a-0410-bde0-09ae8108e29a
parent 059257ac
No related branches found
No related tags found
No related merge requests found
...@@ -254,6 +254,8 @@ class SimpleSAML_XML_Shib13_AuthnResponse extends SimpleSAML_XML_AuthnResponse { ...@@ -254,6 +254,8 @@ class SimpleSAML_XML_Shib13_AuthnResponse extends SimpleSAML_XML_AuthnResponse {
// Traverse Values // Traverse Values
foreach ($attribute->AttributeValue AS $newvalue) { foreach ($attribute->AttributeValue AS $newvalue) {
$newvalue = (string)$newvalue;
if ($base64) { if ($base64) {
$encodedvalues = explode('_', $newvalue); $encodedvalues = explode('_', $newvalue);
foreach($encodedvalues AS $v) { foreach($encodedvalues AS $v) {
...@@ -263,8 +265,6 @@ class SimpleSAML_XML_Shib13_AuthnResponse extends SimpleSAML_XML_AuthnResponse { ...@@ -263,8 +265,6 @@ class SimpleSAML_XML_Shib13_AuthnResponse extends SimpleSAML_XML_AuthnResponse {
$values[] = $newvalue; $values[] = $newvalue;
} }
$values[] = (string) $val;
} }
$attributes[(string)$attribute['AttributeName']] = $values; $attributes[(string)$attribute['AttributeName']] = $values;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment