1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-02-03 18:18:23 +08:00

fix(frontend-search): URL-encode search parameters ()

Fixes 
Closes 
This commit is contained in:
jackh 2022-05-04 00:34:22 +08:00 committed by Marc Cornellà
parent 140c977a3d
commit d7fc9b87f9
No known key found for this signature in database
GPG Key ID: 0314585E776A9C1B

View File

@ -103,8 +103,7 @@ function frontend() {
# build search url: # build search url:
# join arguments passed with '%20', then append to search context URL # join arguments passed with '%20', then append to search context URL
# TODO substitute for proper urlencode method url="${urls[$1]}$(omz_urlencode -P ${@[2,-1]})"
url="${urls[$1]}${(j:%20:)@[2,-1]}"
echo "Opening $url ..." echo "Opening $url ..."