Skip to content

Commit

Permalink
Edits
Browse files Browse the repository at this point in the history
  • Loading branch information
grellyd committed Aug 29, 2023
1 parent eb73e62 commit a91a0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a91a0dc

Please sign in to comment.