Skip to content

Commit

Permalink
check url length
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-hov committed Nov 8, 2023
1 parent 2ddcb15 commit b5673a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnovm/cmd/gno/bug.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func execBug(args []string, io *commands.IO) error {
body := buf.String()
url := "https://github.com/gnolang/gno/issues/new?body=" + url.QueryEscape(body)

if !openBrowser(url) {
if len(url) > 2048 || !openBrowser(url) {
io.Println("Please file a new issue at github.com/gnolang/gno/issues/new using this template:")
io.Println()
io.Println(body)
Expand Down

0 comments on commit b5673a1

Please sign in to comment.