[Fusionforge-commits] r7038 - trunk/gforge/common/mail

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Mon Feb 23 22:04:44 CET 2009


Author: aljeux
Date: 2009-02-23 22:04:44 +0100 (Mon, 23 Feb 2009)
New Revision: 7038

Modified:
   trunk/gforge/common/mail/MailingList.class.php
Log:
use session_ser instead of session_hash of entropy

I don't have session_hash key in may session but session_ser that's look
very similar.
This patch avoid this warning:
Notice: Undefined index: session_hash in .../gforge/common/mail/MailingList.class.php on line 148

Author:    Gon?\195?\169ri Le Bouder <goneri at rulezlan.org>

Modified: trunk/gforge/common/mail/MailingList.class.php
===================================================================
--- trunk/gforge/common/mail/MailingList.class.php	2009-02-23 21:03:38 UTC (rev 7037)
+++ trunk/gforge/common/mail/MailingList.class.php	2009-02-23 21:04:44 UTC (rev 7038)
@@ -144,8 +144,7 @@
 			return false;
 		}
 
-			
-		$listPassword = substr(md5($GLOBALS['session_hash'] . time() . rand(0,40000)), 0, 16);
+		$listPassword = substr(md5($GLOBALS['session_ser'] . time() . rand(0,40000)), 0, 16);
 		
 		$sql = 'INSERT INTO mail_group_list '
 			. '(group_id, list_name, is_public, password, list_admin, status, description) VALUES ('




More information about the Fusionforge-commits mailing list