Serialize SAML arrays (Closes: #885)

This commit is contained in:
Xavier Guimard 2016-01-21 20:27:49 +00:00
parent 4da8177672
commit b264f7635d

View File

@ -296,15 +296,13 @@ sub _scanNodes {
next;
}
# TODO: what is this ?
#if ( defined $leaf->{data} and ref( $leaf->{data} ) eq 'ARRAY' ) {
# hdebug('Other array detected');
# $leaf->{data} = join ';', @{ $leaf->{data} };
#}
# SAML
elsif ( $base =~ /^saml(?:S|ID)PMetaDataNodes$/ ) {
hdebug('SAML');
if ( defined $leaf->{data} and ref( $leaf->{data} ) eq 'ARRAY' ) {
hdebug(" SAML data is an array, serializing");
$leaf->{data} = join ';', @{ $leaf->{data} };
}
if ( $target =~ /^saml(?:S|ID)PMetaDataExportedAttributes$/ ) {
if ( $leaf->{cnodes} ) {
hdebug(" $target: unopened node");