mirror of https://github.com/zulip/zulip.git
Add api_key to filtered variables.
We don't use it yet, but the plan is the migrate there and it's better to just have the filtering in place. (imported from commit d0e7f40e8a439b8e8751da954e79b5f67226e5a9)
This commit is contained in:
parent
86fe801944
commit
85ef4988e1
|
@ -7,7 +7,7 @@ class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
|
||||||
def get_post_parameters(self, request):
|
def get_post_parameters(self, request):
|
||||||
filtered_post = SafeExceptionReporterFilter.get_post_parameters(self, request).copy()
|
filtered_post = SafeExceptionReporterFilter.get_post_parameters(self, request).copy()
|
||||||
filtered_vars = ['content', 'secret', 'password', 'key', 'api-key', 'subject', 'stream',
|
filtered_vars = ['content', 'secret', 'password', 'key', 'api-key', 'subject', 'stream',
|
||||||
'subscriptions', 'to', 'csrfmiddlewaretoken']
|
'subscriptions', 'to', 'csrfmiddlewaretoken', 'api_key']
|
||||||
|
|
||||||
for var in filtered_vars:
|
for var in filtered_vars:
|
||||||
if var in filtered_post:
|
if var in filtered_post:
|
||||||
|
|
Loading…
Reference in New Issue