diff options
author | Erik Johnston <erik@matrix.org> | 2016-01-08 17:48:08 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-01-08 17:48:08 +0000 |
commit | 8f8b884430d29e30688becf4bc38e48014a25851 (patch) | |
tree | 3e411e4a6a9bdde0d7ef96423e5ff2cc4c1155c6 /synapse/app | |
parent | Turn on core dumps (diff) | |
download | synapse-8f8b884430d29e30688becf4bc38e48014a25851.tar.xz |
Don't log urlencoded access_tokens
Diffstat (limited to 'synapse/app')
-rwxr-xr-x | synapse/app/homeserver.py | 4 |
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 ) |