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

Commit

Permalink
fix(commands/mr/create): escape description before using it 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 17bd9a3 commit 8990771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/mr/create/mr_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ func generateMRCompareURL(opts *CreateOpts) (string, error) {
u.RawQuery = fmt.Sprintf(
"utf8=✓&merge_request[title]=%s&merge_request[description]=%s&merge_request[source_branch]=%s&merge_request[target_branch]=%s&merge_request[source_project_id]=%d&merge_request[target_project_id]=%d",
opts.Title,
description,
url.QueryEscape(description),
opts.SourceBranch,
opts.TargetBranch,
opts.SourceProject.ID,
Expand Down

0 comments on commit 8990771

Please sign in to comment.