From b5673a11ecabfcc83980eac791903eec3f947881 Mon Sep 17 00:00:00 2001 From: Hariom Verma Date: Thu, 9 Nov 2023 04:33:37 +0530 Subject: [PATCH] check url length --- gnovm/cmd/gno/bug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnovm/cmd/gno/bug.go b/gnovm/cmd/gno/bug.go index e852fdb297d..9b66ccae456 100644 --- a/gnovm/cmd/gno/bug.go +++ b/gnovm/cmd/gno/bug.go @@ -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)