mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-09-28 22:16:05 +02:00
fix(lib): protect omz_urlencode from global aliases (#14128)
This commit is contained in:
+2
-1
@@ -178,7 +178,8 @@ function omz_urlencode() {
|
|||||||
setopt norematchpcre
|
setopt norematchpcre
|
||||||
|
|
||||||
local -a opts
|
local -a opts
|
||||||
zparseopts -D -E -a opts r m P
|
# Quote the specs so global aliases (e.g. common-aliases' P) don't expand here
|
||||||
|
zparseopts -D -E -a opts 'r' 'm' 'P'
|
||||||
|
|
||||||
local in_str="$@"
|
local in_str="$@"
|
||||||
local url_str=""
|
local url_str=""
|
||||||
|
|||||||
Reference in New Issue
Block a user