forked from axiom-team/g1-stats
Explorer: Security fix when loading functions
This commit is contained in:
parent
a3bdf1011e
commit
41dc74a545
|
@ -137,6 +137,5 @@ anniversary() {
|
|||
# Load functions
|
||||
case $cmd in
|
||||
'') day;;
|
||||
*) $cmd;;
|
||||
*) [[ $(type -t $cmd) == "function" ]] && $cmd || (echo -e "$cmd: Commande inconnue\n" && helpOpt);;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in New Issue