summary refs log tree commit diff
path: root/synapse/app/homeserver.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-08 17:48:08 +0000
committerErik Johnston <erik@matrix.org>2016-01-08 17:48:08 +0000
commit8f8b884430d29e30688becf4bc38e48014a25851 (patch)
tree3e411e4a6a9bdde0d7ef96423e5ff2cc4c1155c6 /synapse/app/homeserver.py
parentTurn on core dumps (diff)
downloadsynapse-8f8b884430d29e30688becf4bc38e48014a25851.tar.xz
Don't log urlencoded access_tokens
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-xsynapse/app/homeserver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 58a4c812f6..bafac884a3 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -496,8 +496,8 @@ class SynapseRequest(Request):
 
     def get_redacted_uri(self):
         return re.sub(
-            r'(\?.*access_token=)[^&]*(.*)$',
-            r'\1<redacted>\2',
+            r'(\?.*accesss(_|%5[Ff])token=)[^&]*(.*)$',
+            r'\1<redacted>\3',
             self.uri
         )