Skip to content

Commit

Permalink
[saml] Fix key_file has no attribute 'strip' when resp assertion sign…
Browse files Browse the repository at this point in the history
…ed (#2648)
  • Loading branch information
wing2fly committed Nov 24, 2021
1 parent b07e0e7 commit 2c5c886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/core/ext-py/pysaml2-4.9.0/src/saml2/sigver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ def decrypt(self, enctext, key_file=None, id_attr='', passphrase=None):
: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
Expand Down

0 comments on commit 2c5c886

Please sign in to comment.