mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
fix regexp for log redaction to actually redact AS access_tokens etc
This commit is contained in:
parent
90d70af269
commit
cd8494a9a1
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue