[Fusionforge-commits] r7613 - branches/Branch_4_8/gforge/common/include

Julien HEYMAN jheyman at libremir.placard.fr.eu.org
Wed May 6 10:41:59 CEST 2009


Author: jheyman
Date: 2009-05-06 10:41:59 +0200 (Wed, 06 May 2009)
New Revision: 7613

Modified:
   branches/Branch_4_8/gforge/common/include/User.class.php
Log:
Fixed bug when you have a quote in email.

Modified: branches/Branch_4_8/gforge/common/include/User.class.php
===================================================================
--- branches/Branch_4_8/gforge/common/include/User.class.php	2009-05-06 08:41:28 UTC (rev 7612)
+++ branches/Branch_4_8/gforge/common/include/User.class.php	2009-05-06 08:41:59 UTC (rev 7613)
@@ -766,7 +766,7 @@
 	 */
 	function setEmail($email) {
 
-		if (!strcasecmp($this->getEmail(), $email)) {
+		if (!strcasecmp($this->getEmail(), stripslashes($email))) {
 			return true;
 		}
 
@@ -799,7 +799,11 @@
 			$hook_params['user_email'] = $email;
 			plugin_hook ("user_setemail", $hook_params);
 			
-			$this->data_array['email'] = $email;
+			if (!$this->fetchData($this->getId())) {
+				db_rollback();
+				return false;
+			}
+
 			db_commit();
 			return true;
 		}




More information about the Fusionforge-commits mailing list