1
0
Fork 0
mirror of synced 2024-12-22 22:18:57 -05:00

[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), Closes #168
This commit is contained in:
Eric Nielsen 2017-04-17 16:40:34 -05:00
parent d771fd88fb
commit dca1803ced

View file

@ -68,7 +68,7 @@ prompt_eriner_git() {
if [[ -n ${git_info} ]]; then
local 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
}