Ensure there are no accidental newlines when fetching the ENCRYPTION_KEY

This commit is contained in:
kevgliss 2015-08-19 15:46:10 -07:00
parent 4a0328cd8f
commit b00917aa60

View File

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