Explorer: Security fix when loading functions

This commit is contained in:
poka 2020-10-05 09:17:29 +02:00
parent a3bdf1011e
commit 41dc74a545
1 changed files with 1 additions and 2 deletions

View File

@ -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