[Svn] r4291 - in trunk/plugins/password: . drivers

trac at roundcube.net trac at roundcube.net
Tue Nov 30 16:08:19 CET 2010


Author: alec
Date: 2010-11-30 09:08:19 -0600 (Tue, 30 Nov 2010)
New Revision: 4291

Modified:
   trunk/plugins/password/drivers/chpasswd.php
   trunk/plugins/password/package.xml
Log:
- Chpasswd driver: add newline at end of input to chpasswd binary (#1487141)


Modified: trunk/plugins/password/drivers/chpasswd.php
===================================================================
--- trunk/plugins/password/drivers/chpasswd.php	2010-11-30 13:43:04 UTC (rev 4290)
+++ trunk/plugins/password/drivers/chpasswd.php	2010-11-30 15:08:19 UTC (rev 4291)
@@ -18,7 +18,7 @@
     $username = $_SESSION['username'];
 
     $handle = popen($cmd, "w");
-    fwrite($handle, "$username:$newpass");
+    fwrite($handle, "$username:$newpass\n");
 
     if (pclose($handle) == 0) {
         return PASSWORD_SUCCESS;

Modified: trunk/plugins/password/package.xml
===================================================================
--- trunk/plugins/password/package.xml	2010-11-30 13:43:04 UTC (rev 4290)
+++ trunk/plugins/password/package.xml	2010-11-30 15:08:19 UTC (rev 4291)
@@ -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="/">

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list