diff options
author | Matthew Hodgson <matthew@matrix.org> | 2017-10-09 18:17:42 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2017-10-09 18:17:42 +0100 |
commit | cd8494a9a1ee9a8a492de7c230978758a03b7c55 (patch) | |
tree | d390c522084eec1e3f3d162468a89bcb11c61bc2 | |
parent | Merge branch 'master' of github.com:matrix-org/synapse into develop (diff) | |
download | synapse-github/matthew/fix-log-redaction.tar.xz |
fix regexp for log redaction to actually redact AS access_tokens etc github/matthew/fix-log-redaction matthew/fix-log-redaction
-rw-r--r-- | synapse/http/site.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/site.py b/synapse/http/site.py index 4b09d7ee66..a3a2c41217 100644 --- a/synapse/http/site.py +++ b/synapse/http/site.py @@ -20,7 +20,7 @@ import logging import re import time -ACCESS_TOKEN_RE = re.compile(r'(\?.*access(_|%5[Ff])token=)[^&]*(.*)$') +ACCESS_TOKEN_RE = re.compile(r'(\?\S*?access(_|%5[Ff])token=).*?(&|\s|$)') class SynapseRequest(Request): |