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