Unverified Commit 140c977a authored by jackh's avatar jackh Committed by Marc Cornellà

fix(web-search): URL-encode search parameters (#10910)

Fixes #10884
parent 4674384d
......@@ -35,7 +35,7 @@ function web_search() {
if [[ $# -gt 1 ]]; then
# build search url:
# join arguments passed with '+', then append to search engine URL
url="${urls[$1]}${(j:+:)@[2,-1]}"
url="${urls[$1]}$(omz_urlencode ${@[2,-1]})"
else
# build main page url:
# split by '/', then rejoin protocol (1) and domain (2) parts with '//'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment