Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
fix(commandds/issue/create): escape description before using in RawQuery
Browse files Browse the repository at this point in the history
It is required, otherwise long descriptions will complex lines like
build logs will fail
  • Loading branch information
maxice8 committed Dec 28, 2020
1 parent ef37c07 commit 0c73807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/issue/create/issue_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,6 @@ func generateIssueWebURL(opts *CreateOpts, repo glrepo.Interface) (string, error
u.RawQuery = fmt.Sprintf(
"utf8=✓&issue[title]=%s&issue[description]=%s",
opts.Title,
description)
url.QueryEscape(description))
return u.String(), nil
}

0 comments on commit 0c73807

Please sign in to comment.