summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-01-27 23:30:46 +0100
committerWim <wim@42.be>2017-01-27 23:30:46 +0100
commit5f8b24e32c5ad9a480e710c3f1854b335dbef804 (patch)
treef6f79334f2e0ee2241074f0be8be74d1162ef056
parent678a7ceb4e4e40ab2f2c8c8529c4997376a39555 (diff)
downloadmatterbridge-msglm-5f8b24e32c5ad9a480e710c3f1854b335dbef804.tar.gz
matterbridge-msglm-5f8b24e32c5ad9a480e710c3f1854b335dbef804.tar.bz2
matterbridge-msglm-5f8b24e32c5ad9a480e710c3f1854b335dbef804.zip
Fix username (telegram)
-rw-r--r--bridge/telegram/telegram.go2
1 files changed, 1 insertions, 1 deletions
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