From 5f8b24e32c5ad9a480e710c3f1854b335dbef804 Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 27 Jan 2017 23:30:46 +0100 Subject: Fix username (telegram) --- bridge/telegram/telegram.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/telegram') diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index cbf8eedf..e17c7801 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -117,7 +117,7 @@ func (b *Btelegram) Send(msg config.Message) error { blackfriday.EXTENSION_BACKSLASH_LINE_BREAK| blackfriday.EXTENSION_DEFINITION_LISTS) - m := tgbotapi.NewMessage(chatid, msg.Username+string(parsed)) + m := tgbotapi.NewMessage(chatid, html.EscapeString(msg.Username)+string(parsed)) m.ParseMode = "HTML" _, err = b.c.Send(m) return err -- cgit v1.2.3