[Fusionforge-commits] r7074 - trunk/gforge/www/account

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Thu Feb 26 18:41:59 CET 2009


Author: aljeux
Date: 2009-02-26 18:41:59 +0100 (Thu, 26 Feb 2009)
New Revision: 7074

Modified:
   trunk/gforge/www/account/change_email.php
Log:
fix the confirm_hash creation

session_hash is not declared global and so = null, we use the
$GLOBALS['session_ser'] instead.

Modified: trunk/gforge/www/account/change_email.php
===================================================================
--- trunk/gforge/www/account/change_email.php	2009-02-26 17:41:52 UTC (rev 7073)
+++ trunk/gforge/www/account/change_email.php	2009-02-26 17:41:59 UTC (rev 7074)
@@ -39,7 +39,7 @@
 		exit_error(_('Error'),_('Invalid email address.'));
 	}
 
-	$confirm_hash = substr(md5($session_hash . time()),0,16);
+	$confirm_hash = substr(md5($GLOBALS['session_ser'] . time()),0,16);
 
 	$u =& user_get_object(user_getid());
 	if (!$u || !is_object($u)) {




More information about the Fusionforge-commits mailing list