mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
Revert "Streams: Disallow certain markdown characters in stream names."
This reverts commit dd1b14378b.
Deleted a conflicted test entirely.
This commit is contained in:
@@ -1718,9 +1718,6 @@ def check_stream_name(stream_name: Text) -> None:
|
||||
raise JsonableError(_("Invalid stream name '%s'" % (stream_name)))
|
||||
if len(stream_name) > Stream.MAX_NAME_LENGTH:
|
||||
raise JsonableError(_("Stream name too long (limit: %s characters)." % (Stream.MAX_NAME_LENGTH)))
|
||||
if set(stream_name).intersection(Stream.NAME_INVALID_CHARS):
|
||||
raise JsonableError(_("Invalid characters in stream name (disallowed characters: %s)."
|
||||
% ((', ').join(Stream.NAME_INVALID_CHARS))))
|
||||
for i in stream_name:
|
||||
if ord(i) == 0:
|
||||
raise JsonableError(_("Stream name '%s' contains NULL (0x00) characters." % (stream_name)))
|
||||
|
||||
Reference in New Issue
Block a user