mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-03 16:33:47 +02:00
fix(frontend-search): URL-encode search parameters (#10910)
Fixes #10884 Closes #10910
This commit is contained in:
1 parent
140c977a3d
commit
d7fc9b87f9
1 file changed
+1
-2
@@ -103,8 +103,7 @@ function frontend() {
|
||||
|
||||
# build search url:
|
||||
# join arguments passed with '%20', then append to search context URL
|
||||
# TODO substitute for proper urlencode method
|
||||
url="${urls[$1]}${(j:%20:)@[2,-1]}"
|
||||
url="${urls[$1]}$(omz_urlencode -P ${@[2,-1]})"
|
||||
|
||||
echo "Opening $url ..."
|
||||
|
||||
|
||||
Reference in new issue
Block a user