Projet

Général

Profil

0001-misc-don-t-treat-basic-attributes-as-XML-43193.patch

Frédéric Péters, 21 mai 2020 19:21

Télécharger (1,18 ko)

Voir les différences:

Subject: [PATCH] misc: don't treat basic attributes as XML (#43193)

 mellon/views.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
mellon/views.py
216 216
            for at in ats.attribute:
217 217
                values = attributes.setdefault(at.name, [])
218 218
                for value in at.attributeValue:
219
                    contents = [lasso_decode(any.exportToXml()) for any in value.any]
219
                    if at.nameFormat == lasso.SAML2_ATTRIBUTE_NAME_FORMAT_BASIC:
220
                        contents = [lasso_decode(any.content) for any in value.any]
221
                    else:
222
                        contents = [lasso_decode(any.exportToXml()) for any in value.any]
220 223
                    content = ''.join(contents)
221 224
                    values.append(content)
222 225
        attributes['issuer'] = login.remoteProviderId
223
-