From 8890b564e8c1ff2b2838ff7f3734a3756a2f3820 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 24 Dec 2022 20:34:39 -0800 Subject: [PATCH] Do not pass along the raw error. Closes #2491 --- controllers/auth/indieauth/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/auth/indieauth/client.go b/controllers/auth/indieauth/client.go index 6ea483dbc..7b53ac4b8 100644 --- a/controllers/auth/indieauth/client.go +++ b/controllers/auth/indieauth/client.go @@ -58,7 +58,7 @@ func HandleRedirect(w http.ResponseWriter, r *http.Request) { request, response, err := ia.HandleCallbackCode(code, state) if err != nil { log.Debugln(err) - msg := fmt.Sprintf("Unable to complete authentication. Go back.
%s", err.Error()) + msg := `Unable to complete authentication. Go back.
` _ = controllers.WriteString(w, msg, http.StatusBadRequest) return }