Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit f10a5e14b6477e409ba4afa4c4f56480bca6615d Author: Wim <wim@42.be> Date: Fri Jan 27 23:30:46 2017 +0000 Fix username (telegram) diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index cbf8eed..e17c780 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -1177 +1177 @@ 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