[prompt] Don't expand git_info in eriner theme
to avoid the git-info vulnerability to execute an arbitrary command, as reported in #158. Fixes #158 (for eriner theme)
This commit is contained in:
parent
d771fd88fb
commit
d0f1bc274f
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ prompt_eriner_git() {
|
||||||
if [[ -n ${git_info} ]]; then
|
if [[ -n ${git_info} ]]; then
|
||||||
local indicator
|
local indicator
|
||||||
[[ ${git_info[color]} == yellow ]] && indicator='± '
|
[[ ${git_info[color]} == yellow ]] && indicator='± '
|
||||||
prompt_eriner_segment ${git_info[color]} " %F{black}${(e)git_info[prompt]} ${indicator}"
|
prompt_eriner_segment ${git_info[color]} ' %F{black}${(e)git_info[prompt]} ${indicator}'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue