fix(lib): protect omz_urlencode from global aliases (#14128)

This commit is contained in:
Felix Bühler
2026-09-28 09:44:06 +02:00
committed by GitHub
parent 0431f1c33d
commit f809d46c10
+2 -1
View File
@@ -178,7 +178,8 @@ function omz_urlencode() {
setopt norematchpcre
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 url_str=""