Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

streams: Move enforcement of stripped-stream-names lower.

Alex Vandiver03864db5a2fe
diff --git a/zerver/lib/streams.py b/zerver/lib/streams.py
index c8d9d6b1c60..a045bc30f6f 100644
--- a/zerver/lib/streams.py
+++ b/zerver/lib/streams.py
@@ -149,6 +149,8 @@ def create_stream_if_needed(
name=SystemGroups.ADMINISTRATORS, is_system_group=True, realm=realm
)
+ stream_name = stream_name.strip()
+
assert can_remove_subscribers_group is not None
(stream, created) = Stream.objects.get_or_create(
realm=realm,