mirror of https://github.com/perkeep/perkeep.git
search: escape r.AttrFilter in ClaimsRequest.URLSuffix
Change-Id: I90e5a87330dc6ae820f2f5f6e3887a26f341a2b2
This commit is contained in:
parent
a0929f2103
commit
bf041c8955
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue