Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
request: Remove redundant str_validator=check_string from REQ().
Anders Kaseorg93d2ae80924a
diff --git a/zerver/views/message_fetch.py b/zerver/views/message_fetch.pyindex 391ff479f6f..a185bfd423f 100644--- a/zerver/views/message_fetch.py+++ b/zerver/views/message_fetch.py@@ -922,7 +922,7 @@ def parse_anchor_value(anchor_val: Optional[str], use_first_unread_anchor: bool)def get_messages_backend(request: HttpRequest,maybe_user_profile: Union[UserProfile, AnonymousUser],- anchor_val: Optional[str] = REQ("anchor", str_validator=check_string, default=None),+ anchor_val: Optional[str] = REQ("anchor", default=None),num_before: int = REQ(converter=to_non_negative_int),num_after: int = REQ(converter=to_non_negative_int),narrow: OptionalNarrowListT = REQ("narrow", converter=narrow_parameter, default=None),diff --git a/zilencer/views.py b/zilencer/views.pyindex d51a0016f18..b2f2a67736f 100644--- a/zilencer/views.py+++ b/zilencer/views.py@@ -68,7 +68,7 @@ def register_remote_server(str_validator=check_string_fixed_length(RemoteZulipServer.API_KEY_LENGTH)),hostname: str = REQ(str_validator=check_capped_string(RemoteZulipServer.HOSTNAME_MAX_LENGTH)),- contact_email: str = REQ(str_validator=check_string),+ contact_email: str = REQ(),new_org_key: Optional[str] = REQ(str_validator=check_string_fixed_length(RemoteZulipServer.API_KEY_LENGTH), default=None),