summaryrefslogtreecommitdiff
path: root/plugins/password/drivers/chpasswd.php
diff options
context:
space:
mode:
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;