search: escape r.AttrFilter in ClaimsRequest.URLSuffix

Change-Id: I90e5a87330dc6ae820f2f5f6e3887a26f341a2b2
This commit is contained in:
Brad Fitzpatrick 2014-03-19 14:59:13 -07:00
parent a0929f2103
commit bf041c8955
1 changed files with 2 additions and 1 deletions

View File

@ -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