From a91a0dcd9671171ebc3bfc7522182da9e9160e07 Mon Sep 17 00:00:00 2001 From: "Graham L. Brown" Date: Tue, 29 Aug 2023 01:56:19 -0600 Subject: [PATCH] Edits --- handlers/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/handlers.go b/handlers/handlers.go index 23bf611..23a4d67 100644 --- a/handlers/handlers.go +++ b/handlers/handlers.go @@ -66,7 +66,7 @@ func QRCode(w http.ResponseWriter, r *http.Request) { link := r.PostFormValue("link") globallogger.Info(fmt.Sprintf("link: %s\n", link)) - if _, err := url.Parse(link); err != nil { + if _, err := url.ParseRequestURI(link); err != nil { http.Error(w, fmt.Sprintf("invalid link: %s\n", err.Error()), http.StatusBadRequest) return }