[Fusionforge-commits] r10011 - trunk/gforge/common/include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Jun 9 22:45:22 CEST 2010


Author: aljeux
Date: 2010-06-09 22:45:22 +0200 (Wed, 09 Jun 2010)
New Revision: 10011

Modified:
   trunk/gforge/common/include/utils.php
Log:
Minor: fixed php warning

Modified: trunk/gforge/common/include/utils.php
===================================================================
--- trunk/gforge/common/include/utils.php	2010-06-09 20:45:14 UTC (rev 10010)
+++ trunk/gforge/common/include/utils.php	2010-06-09 20:45:22 UTC (rev 10011)
@@ -33,6 +33,7 @@
     $len = strlen($plainpasswd);
     $text = $plainpasswd.'$apr1$'.$salt;
     $bin = pack("H32", md5($plainpasswd.$salt.$plainpasswd));
+    $tmp = '';
     for($i = $len; $i > 0; $i -= 16) { $text .= substr($bin, 0, min(16, $i)); }
     for($i = $len; $i > 0; $i >>= 1) { $text .= ($i & 1) ? chr(0) : $plainpasswd{0}; }
     $bin = pack("H32", md5($text));




More information about the Fusionforge-commits mailing list