From b00917aa60b65b94dacdcf6774886902316e186d Mon Sep 17 00:00:00 2001 From: kevgliss Date: Wed, 19 Aug 2015 15:46:10 -0700 Subject: [PATCH] Ensure there are no accidental newlines when fetching the ENCRYPTION_KEY --- lemur/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/utils.py b/lemur/utils.py index d59d235d..1ea73759 100644 --- a/lemur/utils.py +++ b/lemur/utils.py @@ -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 ''