summaryrefslogtreecommitdiff
path: root/plugins/password/drivers/chpasswd.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-30 15:08:19 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-30 15:08:19 +0000
commitb47750ee77ab74c062d39a887d1091d4d91ea5af (patch)
tree78165735f6190f90b046dc62451e39f08531a145 /plugins/password/drivers/chpasswd.php
parent104203010b81b1287800b20165f192cb5792f394 (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/password/drivers/chpasswd.php')
-rw-r--r--plugins/password/drivers/chpasswd.php2
1 files changed, 1 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;