From bf041c8955522356aa3bf123ff3d09a426ece03b Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 19 Mar 2014 14:59:13 -0700 Subject: [PATCH] search: escape r.AttrFilter in ClaimsRequest.URLSuffix Change-Id: I90e5a87330dc6ae820f2f5f6e3887a26f341a2b2 --- pkg/search/handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/search/handler.go b/pkg/search/handler.go index 52d5a7fde..f575de90f 100644 --- a/pkg/search/handler.go +++ b/pkg/search/handler.go @@ -329,7 +329,8 @@ type ClaimsRequest struct { } func (r *ClaimsRequest) URLSuffix() string { - return fmt.Sprintf("camli/search/claims?permanode=%v&attrFilter=%s", r.Permanode, r.AttrFilter) + return fmt.Sprintf("camli/search/claims?permanode=%v&attrFilter=%s", + r.Permanode, url.QueryEscape(r.AttrFilter)) } // fromHTTP panics with an httputil value on failure