mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
Filter out stream names in subscription and message requests.
(imported from commit bf1cf085361e45da21d512e77829059fe35c95c0)
This commit is contained in:
@@ -3,7 +3,8 @@ from django.views.debug import SafeExceptionReporterFilter
|
||||
class HumbugExceptionReporterFilter(SafeExceptionReporterFilter):
|
||||
def get_post_parameters(self, request):
|
||||
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']
|
||||
|
||||
for var in filtered_vars:
|
||||
if var in filtered_post:
|
||||
|
||||
Reference in New Issue
Block a user