Skip to content

Commit

Permalink
apply URL encoding if the name contains a slash
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur1 committed Sep 8, 2024
1 parent 8ec869c commit ff88933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appconfig/agentclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (c *AgentClient) GetFlag(_ context.Context, application, environment, confi
if err != nil {
return nil, err
}
endpointURL = endpointURL.JoinPath("applications", application, "environments", environment, "configurations", configuration)
endpointURL = endpointURL.JoinPath("applications", url.PathEscape(application), "environments", url.PathEscape(environment), "configurations", url.PathEscape(configuration))
query := endpointURL.Query()
query.Set("flag", flagName)
endpointURL.RawQuery = query.Encode()
Expand Down

0 comments on commit ff88933

Please sign in to comment.