Merge pull request #43 from kevgliss/decryption

Ensure there are no accidental newlines when fetching the ENCRYPTION_KEY
This commit is contained in:
kevgliss 2015-08-19 15:49:07 -07:00
commit 39c022dbf3
1 changed files with 1 additions and 1 deletions

View File

@ -15,6 +15,6 @@ def get_key():
:return: :return:
""" """
try: try:
return current_app.config.get('LEMUR_ENCRYPTION_KEY') return current_app.config.get('LEMUR_ENCRYPTION_KEY').strip()
except RuntimeError: except RuntimeError:
return '' return ''