Skip to content

Commit

Permalink
Fix URI encoding of strings
Browse files Browse the repository at this point in the history
Signed-off-by: Kartikay <[email protected]>
  • Loading branch information
kartikaysaxena committed Dec 26, 2023
1 parent 480c8d9 commit e39ae8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/thanos/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ func reloadRules(logger log.Logger,

func tableLinkForExpression(tmpl string, expr string) (string, error) {
// template example: "/graph?g0.expr={{.Expr}}&g0.tab=1"
escapedExpression := url.QueryEscape(expr)
escapedExpression := strings.ReplaceAll(url.QueryEscape(expr), "+", "%20")

escapedExpr := Expression{Expr: escapedExpression}
t, err := template.New("url").Parse(tmpl)
Expand Down

0 comments on commit e39ae8e

Please sign in to comment.