From 5ca4bd0db0a2942cef742fb6c3946ad6617c70ba Mon Sep 17 00:00:00 2001 From: Jim Ewald Date: Thu, 1 Mar 2018 06:22:11 -0800 Subject: [PATCH 1/2] Refactor code to expect an empty email address. --- app/Email/services.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Email/services.py b/app/Email/services.py index 8ec3d4b..825f009 100644 --- a/app/Email/services.py +++ b/app/Email/services.py @@ -211,7 +211,8 @@ def _convert_email_uri(email): to create a URI that contains an email address that, when submitted to a server, will not be replaced with a space character. """ - if "+" in email: - return email.replace("+", "%2B") - else: - return email + if email is not None: + if "+" in email: + return email.replace("+", "%2B") + + return email From 22a766845212f6a6a408f36caa75716195cf2bff Mon Sep 17 00:00:00 2001 From: Jim Ewald Date: Thu, 1 Mar 2018 06:25:08 -0800 Subject: [PATCH 2/2] Increment build number for release. --- app/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index 693d67d..3a17c7f 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -24,11 +24,14 @@ app = Flask(__name__) # Application version (major,minor,patch-level) -version = "1.1.4" +version = "1.1.5" """ Change Log +1.1.5 Refactor _convert_email_uri(email) to properly handle a null + email address. + 1.1.4 Add code to convert plus signs located the the username portion of an email address to a '%2B'when the email address is embedded in a URL.