4e777ef9d62f70ec971a3eaca71a23b9f4c93a54
- Author
- Marc Cornellà <hello@mcornella.com>
- Committer
- Marc Cornellà <hello@mcornella.com>
- Date
Message
fix(trapd00r): fix potential command injection in `zsh_path`
Diff
1diff --git a/themes/trapd00r.zsh-theme b/themes/trapd00r.zsh-theme
2index 4e32383939b87267370b7d1edab12d5ea3c3da19..849daf30b598f25fdc08662d7068efe3b39e7a0f 100644
3--- a/themes/trapd00r.zsh-theme
4+++ b/themes/trapd00r.zsh-theme
5@@ -38,6 +38,8 @@ local c13=$'\e[38;5;196m\e[1m'
6
7
8 zsh_path() {
9+ setopt localoptions nopromptsubst
10+
11 local colors
12 colors=$(echoti colors)
13