Skip to content

Commit

Permalink
cogito: properly encode spaces in url
Browse files Browse the repository at this point in the history
  • Loading branch information
aliculPix4D committed Mar 22, 2024
1 parent a69a2cb commit 994bb1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cogito/putter.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ func concourseBuildURL(env Environment) string {
// https://ci.example.com/teams/main/pipelines/cogito/jobs/autocat/builds/3?vars=%7B%22branch%22%3A%22stable%22%7D
if env.BuildPipelineInstanceVars != "" {
buildURL += fmt.Sprintf("?vars=%s", url.QueryEscape(env.BuildPipelineInstanceVars))
buildURL = strings.Replace(buildURL, "+", "%20", -1)

Check failure on line 340 in cogito/putter.go

View workflow job for this annotation

GitHub Actions / all

wrapperFunc: use strings.ReplaceAll method in `strings.Replace(buildURL, "+", "%20", -1)` (gocritic)
}

return buildURL
Expand Down

0 comments on commit 994bb1e

Please sign in to comment.