Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
hash_util: Raise error for invalid sender operator in URL.
Aman Agrawalb79e85866f93
diff --git a/web/src/hash_util.ts b/web/src/hash_util.tsindex 3d03716e473..e54db4af1e5 100644--- a/web/src/hash_util.ts+++ b/web/src/hash_util.ts@@ -71,6 +71,9 @@ export function decode_operand(if (operator === "dm-including" || operator === "dm" || operator === "sender") {const emails = people.slug_to_emails(operand);if (emails) {+ if (operator === "sender") {+ assert(!emails.includes(","), "Sender operand should not be a group");+ }return emails;}}