mirror of
https://github.com/element-hq/synapse
synced 2024-09-03 17:50:07 +00:00
Don't log urlencoded access_tokens
This commit is contained in:
parent
33bef689c1
commit
8f8b884430
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue