Projet

Général

Profil

0001-authentic-agent-pass-bytes-to-ElementTree-for-metada.patch

Frédéric Péters, 16 août 2019 18:35

Télécharger (1,05 ko)

Voir les différences:

Subject: [PATCH] authentic agent: pass bytes to ElementTree for metadata
 validation (#35419)

 hobo/agent/authentic2/management/commands/hobo_deploy.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hobo/agent/authentic2/management/commands/hobo_deploy.py
279 279

  
280 280
    def check_saml_metadata(self, saml_metadata):
281 281
        try:
282
            root = ET.fromstring(saml_metadata)
282
            root = ET.fromstring(saml_metadata.encode('utf-8'))
283 283
        except ET.ParseError:
284 284
            return False
285 285
        return root.tag == '{%s}EntityDescriptor' % lasso.SAML2_METADATA_HREF
286
-