From 79be36acb242a7bf40ffad2a2dabf565a4d25c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20P=C3=A9rez=20Crespo?= <jaime.perez@uninett.no> Date: Sun, 2 Feb 2014 18:54:02 +0000 Subject: [PATCH] Allow attributes with null values, see saml-core-2.0-os, section 2.7.3.1.1. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3349 44740490-163a-0410-bde0-09ae8108e29a --- modules/saml/lib/IdP/SAML2.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/saml/lib/IdP/SAML2.php b/modules/saml/lib/IdP/SAML2.php index e7615a950..f7b45d1d1 100644 --- a/modules/saml/lib/IdP/SAML2.php +++ b/modules/saml/lib/IdP/SAML2.php @@ -684,6 +684,12 @@ class sspmod_saml_IdP_SAML2 { } foreach ($values as $value) { + // allow null values + if ($value === null) { + $ret[$name][] = $value; + continue; + } + switch ($encoding) { case 'string': $value = (string)$value; -- GitLab