summary refs log tree commit diff
diff options
context:
space:
mode:
authorJ. Ryan Stinnett <jryans@gmail.com>2019-09-24 13:55:23 +0100
committerJ. Ryan Stinnett <jryans@gmail.com>2019-09-24 13:55:23 +0100
commit567a4384efe999fb2e1b2b9d8fa0fab9ac57f301 (patch)
treeb7abe0f9fab0b9e19aa021920018fd5e1423cae4
parentAdd changelog (diff)
downloadsynapse-jryans/email-sid.tar.xz
-rw-r--r--synapse/handlers/identity.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/identity.py b/synapse/handlers/identity.py
index adafde004d..6d42a1aed8 100644
--- a/synapse/handlers/identity.py
+++ b/synapse/handlers/identity.py
@@ -332,10 +332,10 @@ class IdentityHandler(BaseHandler):
         if next_link:
             # Manipulate the next_link to add the sid, because the caller won't get
             # it until we send a response, by which time we've sent the mail.
-            if '?' in next_link:
-                next_link += '&'
+            if "?" in next_link:
+                next_link += "&"
             else:
-                next_link += '?'
+                next_link += "?"
             next_link += "sid=" + urllib.parse.quote(session_id)
 
         # Generate a new validation token