Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
get_events_backend: Validate narrow type correctly.
Anders Kaseorg6e33b9c6f224
diff --git a/zerver/tornado/views.py b/zerver/tornado/views.pyindex 40105d3f77b..5bc7f0a5f79 100644--- a/zerver/tornado/views.py+++ b/zerver/tornado/views.py@@ -72,7 +72,7 @@ def get_events_backend(request: HttpRequest, user_profile: UserProfile,event_types: Optional[Sequence[str]]=REQ(default=None, validator=check_list(check_string),intentionally_undocumented=True),dont_block: bool=REQ(default=False, validator=check_bool),- narrow: Iterable[Sequence[str]]=REQ(default=[], validator=check_list(None),+ narrow: Iterable[Sequence[str]]=REQ(default=[], validator=check_list(check_list(check_string)),intentionally_undocumented=True),lifespan_secs: int=REQ(default=0, converter=to_non_negative_int,intentionally_undocumented=True),