From ecb77199a60c8d924e02da7d9afab1c9f026a525 Mon Sep 17 00:00:00 2001 From: polo Date: Sat, 23 Dec 2023 15:34:55 +0100 Subject: =?UTF-8?q?modification=20de=20prestation=20moins=20dangereuse=20g?= =?UTF-8?q?r=C3=A2ce=20=C3=A0=20shell=5Fexec()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sections/3_modify_data.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/sections/3_modify_data.php') diff --git a/src/sections/3_modify_data.php b/src/sections/3_modify_data.php index 0a67cea..279310b 100644 --- a/src/sections/3_modify_data.php +++ b/src/sections/3_modify_data.php @@ -164,8 +164,7 @@ function modifyData($Client): array { echo "choix: modifier" . $choix_niv3 . "\n"; $ModificationPrestaForm = new ZenityEntry($choix_niv3); - $input = exec($ModificationPrestaForm->get()); - //if(is_string($input) && $input != '') + $input = shell_exec($ModificationPrestaForm->get()); // shell_exec() retourne null si la commande échoue, exec() retourne la dernière ligne de texte en sortie ou null si aucune commande ne réussit if(is_string($input)) // chaine vide autorisée { // mettre à jour la base de données -- cgit v1.2.3