security patch

This commit is contained in:
poka 2020-07-13 14:43:54 +02:00
parent 2332625953
commit 2e8f977719
5 changed files with 5 additions and 8 deletions

View File

@ -16,6 +16,6 @@ text() {
cat src/inc/aide.txt
}
$@
[[ $(type $@ | grep "est une fonction") ]] && $@ || echo "Veuillez préciser votre commande"
exit 0

View File

@ -18,5 +18,4 @@ curl -s -H "X-Auth-Token: $API_TOKEN" \
-d "{ \"channel\": \"$chan\", \"text\": \"$msg\" }" > /dev/null 2>&1
}
$@
#[[ $(type $@ | grep "est une fonction") ]] && $@ || echo "Veuillez préciser votre commande"

View File

@ -35,6 +35,6 @@ membres() {
}
$@
[[ $(type $@ | grep "est une fonction") ]] && $@ || echo "Veuillez préciser votre commande"
exit 0

View File

@ -29,8 +29,6 @@ init() {
}
$args
[[ -z $args ]] && echo "Veuillez préciser votre commande"
[[ $(type $args | grep "est une fonction") ]] && $args || echo "Veuillez préciser votre commande"
exit 0

View File

@ -20,6 +20,6 @@ cagnotte() {
}
$@
[[ $(type $@ | grep "est une fonction") ]] && $@ || echo "Veuillez préciser votre commande"
exit 0