projects
/
zsh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72064d4
)
Guard against malicious git branch names
author
Joerg Jaspert
<joerg@debian.org>
Sun, 19 Mar 2017 20:58:37 +0000
(21:58 +0100)
committer
Joerg Jaspert
<joerg@debian.org>
Sun, 19 Mar 2017 20:58:37 +0000
(21:58 +0100)
.zsh/functions/prompt_ganneff_setup
patch
|
blob
|
history
diff --git
a/.zsh/functions/prompt_ganneff_setup
b/.zsh/functions/prompt_ganneff_setup
index
e122747
..
2fe9456
100644
(file)
--- a/
.zsh/functions/prompt_ganneff_setup
+++ b/
.zsh/functions/prompt_ganneff_setup
@@
-608,6
+608,7
@@
ganneff_prompt_addto () {
;;
vcs)
v="vcs_info_msg_${new}_"
+ v=${v//[^a-z0-9\/]/-}
if (( ${+parameters[$v]} )) && [[ -n "${(P)v}" ]]; then
typeset -g "${target}=${(P)target}${(P)v}"
fi