From 60f4dddc227279a8e6fd748a55428926d64b4ac0 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Tue, 15 Jan 2008 15:13:14 +0000 Subject: [PATCH] Shib13:AuthnResponse - Fix attribute parsing. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@160 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/XML/Shib13/AuthnResponse.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/SimpleSAML/XML/Shib13/AuthnResponse.php b/lib/SimpleSAML/XML/Shib13/AuthnResponse.php index 4c1db92d6..0e711ce5b 100644 --- a/lib/SimpleSAML/XML/Shib13/AuthnResponse.php +++ b/lib/SimpleSAML/XML/Shib13/AuthnResponse.php @@ -254,6 +254,8 @@ class SimpleSAML_XML_Shib13_AuthnResponse extends SimpleSAML_XML_AuthnResponse { // Traverse Values foreach ($attribute->AttributeValue AS $newvalue) { + $newvalue = (string)$newvalue; + if ($base64) { $encodedvalues = explode('_', $newvalue); foreach($encodedvalues AS $v) { @@ -263,8 +265,6 @@ class SimpleSAML_XML_Shib13_AuthnResponse extends SimpleSAML_XML_AuthnResponse { $values[] = $newvalue; } - - $values[] = (string) $val; } $attributes[(string)$attribute['AttributeName']] = $values; -- GitLab