Skip to content

Commit

Permalink
Issue lelas33#26: Protection du mot de passe avant de l'utiliser sur …
Browse files Browse the repository at this point in the history
…la commande Bash
  • Loading branch information
dricair committed Nov 19, 2023
1 parent d528c99 commit 5886504
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/ajax/peugeotcars.ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ function otp_prepare ()
$cmd = 'sudo /usr/bin/python3 ' . dirname(__FILE__) . '/../../3rdparty/psa_jeedom_daemon/jeedom_otp.py';
$cmd .= ' --web-conf ';
$cmd .= ' -m ' . $mail;
$cmd .= ' -P ' . $passwd;
$cmd .= ' -P \'' . $passwd . '\'';
$cmd .= ' -B ' . $brandid;
$cmd .= ' -C ' . $country;
$cmd .= ' >> ' . log::getPathToLog('peugeotcars_otp') . ' 2>&1 &';
Expand Down
2 changes: 1 addition & 1 deletion core/class/peugeotcars.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static function deamon_start($_debug = false) {

$cmd = 'sudo /usr/bin/python3 ' . dirname(__FILE__) . '/../../3rdparty/psa_jeedom_daemon/jeedom_gateway.py';
$cmd .= ' -m ' . config::byKey('account', 'peugeotcars');
$cmd .= ' -P ' . config::byKey('password', 'peugeotcars');
$cmd .= ' -P \'' . config::byKey('password', 'peugeotcars') . '\'';
$cmd .= ' >> ' . log::getPathToLog('peugeotcars_remote') . ' 2>&1 &';

log::add('peugeotcars', 'info', $cmd);
Expand Down

0 comments on commit 5886504

Please sign in to comment.