mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-04 18:13:41 +02:00
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:
parent
336a18387a
commit
ee38ad3a17
|
@ -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 .= ' ';
|
||||
|
|
Loading…
Reference in a new issue