1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-10-23 21:23:44 +08:00

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

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=""