Skip to content

Commit

Permalink
fix: URL escape search term when calling /rpc
Browse files Browse the repository at this point in the history
Signed-off-by: moson-mo <mo-son@mailbox.org>
  • Loading branch information
moson-mo committed Oct 21, 2022
1 parent fe800ac commit 8f5ee49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pacseek/aur.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func searchAur(aurUrl, term string, timeout int, mode string, by string, maxResu
t = "search&by=name"
}

req, err := http.NewRequest("GET", aurUrl+"?v=5&type="+t+"&arg="+term, nil)
req, err := http.NewRequest("GET", aurUrl+"?v=5&type="+t+"&arg="+url.PathEscape(term), nil)
if err != nil {
return packages, err
}
Expand Down

0 comments on commit 8f5ee49

Please sign in to comment.