diff options
author | polo <ordipolo@gmx.fr> | 2023-12-23 15:34:55 +0100 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2023-12-23 15:34:55 +0100 |
commit | ecb77199a60c8d924e02da7d9afab1c9f026a525 (patch) | |
tree | 23ea5f65b03a3a7d6c326a62848545b4892d6ef3 /src/sections/3_modify_data.php | |
parent | a4d88fd1913758cc95b395eefcf5e9d730450382 (diff) | |
download | AppliGestionPHP-ecb77199a60c8d924e02da7d9afab1c9f026a525.zip |
modification de prestation moins dangereuse grâce à shell_exec()
Diffstat (limited to 'src/sections/3_modify_data.php')
-rw-r--r-- | src/sections/3_modify_data.php | 3 |
1 files changed, 1 insertions, 2 deletions
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 | |||
164 | { | 164 | { |
165 | echo "choix: modifier" . $choix_niv3 . "\n"; | 165 | echo "choix: modifier" . $choix_niv3 . "\n"; |
166 | $ModificationPrestaForm = new ZenityEntry($choix_niv3); | 166 | $ModificationPrestaForm = new ZenityEntry($choix_niv3); |
167 | $input = exec($ModificationPrestaForm->get()); | 167 | $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 |
168 | //if(is_string($input) && $input != '') | ||
169 | if(is_string($input)) // chaine vide autorisée | 168 | if(is_string($input)) // chaine vide autorisée |
170 | { | 169 | { |
171 | // mettre à jour la base de données | 170 | // mettre à jour la base de données |