mirror of
https://github.com/zulip/zulip.git
synced 2025-10-31 12:03:46 +00:00
js: Escape strings interpolated into CSS selectors with CSS.escape.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -190,7 +190,7 @@ function in_browser_notify(message, title, content, raw_operators, opts) {
|
||||
})
|
||||
.show();
|
||||
|
||||
$(".notification[data-message-id='" + message.id + "']")
|
||||
$(`.notification[data-message-id='${CSS.escape(message.id)}']`)
|
||||
.expectOne()
|
||||
.data("narrow", {
|
||||
raw_operators,
|
||||
|
||||
Reference in New Issue
Block a user