From 65e731e1b77c66124c4a30a4e3ed7cf8cb1487db Mon Sep 17 00:00:00 2001 From: Ben Cooke Date: Tue, 22 Nov 2022 08:43:26 -0500 Subject: [PATCH] [MM-42335] Fix in RenderMobileError (#21536) * tools updates * Revert "tools updates" This reverts commit 6293297b55803c5a263e200ebd80192899666ae9. * fix Co-authored-by: Benjamin Cooke Co-authored-by: Benjamin Cooke Co-authored-by: Benjamin Cooke Co-authored-by: Benjamin Cooke --- utils/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/api.go b/utils/api.go index 4680c66fb9..11d3767de1 100644 --- a/utils/api.go +++ b/utils/api.go @@ -101,7 +101,7 @@ func RenderMobileAuthComplete(w http.ResponseWriter, redirectURL string) { } func RenderMobileError(config *model.Config, w http.ResponseWriter, err *model.AppError, redirectURL string) { - var link = redirectURL + var link = template.HTMLEscapeString(redirectURL) var invalidSchemes = map[string]bool{ "data": true, "javascript": true,