fix regexp for log redaction to actually redact AS access_tokens etc

This commit is contained in:
Matthew Hodgson 2017-10-09 18:17:42 +01:00
parent 90d70af269
commit cd8494a9a1

View file

@ -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):