From 9e70f2f4e90da883eab0a0227ba22fa985efb94e Mon Sep 17 00:00:00 2001 From: zhark01 Date: Sat, 5 Dec 2020 18:10:47 -0500 Subject: [PATCH] widgets: Add support for clickable links. The change was made to support links in polls, as mentioned in issue #12947. We used markdown renderer to render the link content, and parsed out any unnecessary p tags. We changed javascript and hbs files so that they properly render the content. Tested locally whether the links work, in addition to checking for XSS vulnerbilities. Everything tested worked, and no vulnerabilities discovered. Double check that there are no XSS issues. Fixes: #1294o7 --- zerver/lib/actions.py | 1 - 1 file changed, 1 deletion(-) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index 4f73240c8ed305..e9f7398ee85678 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -1819,7 +1819,6 @@ def do_add_submessage(realm: Realm, content=content, ) submessage.save() - print("here") event = dict( type="submessage", msg_type=msg_type,