From f809d46c10c59b3824c9be6c7ccb46db690cd441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20B=C3=BChler?= Date: Mon, 28 Sep 2026 09:44:06 +0200 Subject: [PATCH] fix(lib): protect omz_urlencode from global aliases (#14128) --- lib/functions.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/functions.zsh b/lib/functions.zsh index 330b0e3e9..0a45d6a47 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -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=""