From 408fd35c3dcafcda0561e77a6ddc5092a6acc301 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Wed, 19 Sep 2018 15:27:26 +0300 Subject: [PATCH] Fix invalid HTML on bot message when a branch is deleted --- .../matrix-org/go-neb/services/github/webhook/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/go-neb/services/github/webhook/webhook.go b/src/github.com/matrix-org/go-neb/services/github/webhook/webhook.go index c7cb5de..db11615 100644 --- a/src/github.com/matrix-org/go-neb/services/github/webhook/webhook.go +++ b/src/github.com/matrix-org/go-neb/services/github/webhook/webhook.go @@ -233,7 +233,7 @@ func pushHTMLMessage(p github.PushEvent) string { // this branch was deleted, no HeadCommit object and deleted=true if p.HeadCommit == nil && p.Deleted != nil && *p.Deleted { return fmt.Sprintf( - `[%s] %s deleted %s`, + `[%s] %s deleted %s`, html.EscapeString(*p.Repo.FullName), html.EscapeString(*p.Pusher.Name), html.EscapeString(branch),