From 01ef63abea2b2f8d79db99da013ff8c4af7c1538 Mon Sep 17 00:00:00 2001 From: WeebDataHoarder Date: Fri, 25 Apr 2025 23:20:53 +0200 Subject: [PATCH] challenge: quote expected challenge name on error --- lib/challenge/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/challenge/helper.go b/lib/challenge/helper.go index cc66164..acf56d8 100644 --- a/lib/challenge/helper.go +++ b/lib/challenge/helper.go @@ -42,7 +42,7 @@ func GetVerifyInformation(r *http.Request, reg *Registration) (requestId Request q := r.URL.Query() if q.Get(QueryArgChallenge) != reg.Name { - return RequestId{}, "", "", fmt.Errorf("unexpected challenge: got %s", q.Get(QueryArgChallenge)) + return RequestId{}, "", "", fmt.Errorf("unexpected challenge: got \"%s\"", q.Get(QueryArgChallenge)) } requestIdHex := q.Get(QueryArgRequestId)