mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Don't log urlencoded access_tokens
This commit is contained in:
parent
33bef689c1
commit
8f8b884430
@ -496,8 +496,8 @@ class SynapseRequest(Request):
|
|||||||
|
|
||||||
def get_redacted_uri(self):
|
def get_redacted_uri(self):
|
||||||
return re.sub(
|
return re.sub(
|
||||||
r'(\?.*access_token=)[^&]*(.*)$',
|
r'(\?.*accesss(_|%5[Ff])token=)[^&]*(.*)$',
|
||||||
r'\1<redacted>\2',
|
r'\1<redacted>\3',
|
||||||
self.uri
|
self.uri
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user