when attribute from saml_response is of type array, return all valies with space as separator

Signed-off-by: bne86 <b.von.st.vieth@fz-juelich.de>
This commit is contained in:
bne86 2017-03-10 16:22:49 +01:00 committed by Sérgio Faria
parent 336a18387a
commit ee38ad3a17

View file

@ -426,10 +426,12 @@ class UserBackend implements IApacheBackend, UserInterface, IUserBackend {
foreach($keys as $key) {
if (isset($attributes[$key])) {
if (is_array($attributes[$key])) {
if($value !== '') {
$value .= ' ';
foreach ($attributes[$key] as $attribute_part_value) {
if($value !== '') {
$value .= ' ';
}
$value .= $attribute_part_value;
}
$value .= $attributes[$key][0];
} else {
if($value !== '') {
$value .= ' ';