Explorar o código

[saml] Fix key_file has no attribute 'strip' when resp assertion signed (#2648)

Ying Chen %!s(int64=4) %!d(string=hai) anos
pai
achega
2c5c886004
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/ext-py/pysaml2-4.9.0/src/saml2/sigver.py

+ 1 - 1
desktop/core/ext-py/pysaml2-4.9.0/src/saml2/sigver.py

@@ -1436,7 +1436,7 @@ class SecurityContext(object):
         :param enctext: The encrypted text as a string
         :return: The decrypted text
         """
-        if key_file is None or len(key_file.strip()) == 0:
+        if key_file is None or len(key_file) == 0:
             key_file = self.key_file
         if passphrase is None:
             passphrase = self.key_file_passphrase