diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-11-30 15:08:19 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-11-30 15:08:19 +0000 |
| commit | b47750ee77ab74c062d39a887d1091d4d91ea5af (patch) | |
| tree | 78165735f6190f90b046dc62451e39f08531a145 /plugins | |
| parent | 104203010b81b1287800b20165f192cb5792f394 (diff) | |
- Chpasswd driver: add newline at end of input to chpasswd binary (#1487141)
git-svn-id: https://svn.roundcube.net/trunk@4291 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/password/drivers/chpasswd.php | 2 | ||||
| -rw-r--r-- | plugins/password/package.xml | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/password/drivers/chpasswd.php b/plugins/password/drivers/chpasswd.php index 8450af154..28c3e5d7a 100644 --- a/plugins/password/drivers/chpasswd.php +++ b/plugins/password/drivers/chpasswd.php @@ -18,7 +18,7 @@ function password_save($currpass, $newpass) $username = $_SESSION['username']; $handle = popen($cmd, "w"); - fwrite($handle, "$username:$newpass"); + fwrite($handle, "$username:$newpass\n"); if (pclose($handle) == 0) { return PASSWORD_SUCCESS; diff --git a/plugins/password/package.xml b/plugins/password/package.xml index 1fe49fb74..d4fb6e96b 100644 --- a/plugins/password/package.xml +++ b/plugins/password/package.xml @@ -29,6 +29,7 @@ <notes> - hMail driver: add username_domain detection (#1487100) - hMail driver: HTML tags in logged messages should be stripped off (#1487099) +- Chpasswd driver: add newline at end of input to chpasswd binary (#1487141) </notes> <contents> <dir baseinstalldir="/" name="/"> |
