| | |
| | | function save($currpass, $newpass) |
| | | { |
| | | $curdir = RCUBE_PLUGINS_DIR . 'password/helpers'; |
| | | $username = escapeshellcmd($_SESSION['username']); |
| | | $username = escapeshellarg($_SESSION['username']); |
| | | $password = escapeshellarg($newpass); |
| | | $args = rcmail::get_instance()->config->get('password_dbmail_args', ''); |
| | | $command = "$curdir/chgdbmailusers -c $username -w $password $args"; |
| | | |
| | | exec("$curdir/chgdbmailusers -c $username -w $newpass $args", $output, $returnvalue); |
| | | exec($command, $output, $return_value); |
| | | |
| | | if ($returnvalue == 0) { |
| | | if ($return_value == 0) { |
| | | return PASSWORD_SUCCESS; |
| | | } |
| | | else { |