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.

message_edit: Do not treat server error message as HTML.

Anders Kaseorg8813f2bfe91a
diff --git a/web/src/message_edit.ts b/web/src/message_edit.ts
index 8c76d0b0ea8..1df3b2714dc 100644
--- a/web/src/message_edit.ts
+++ b/web/src/message_edit.ts
@@ -1048,7 +1048,7 @@ function do_toggle_resolve_topic(
if (report_errors_in_global_banner) {
const {msg} = z.object({msg: z.string()}).parse(xhr.responseJSON);
- ui_report.generic_embed_error(msg, 3500);
+ ui_report.generic_embed_error(_.escape(msg), 3500);
}
}
},