[Fusionforge-commits] r9739 - trunk/gforge/cronjobs/mail

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue May 11 15:25:37 CEST 2010


Author: aljeux
Date: 2010-05-11 15:25:37 +0200 (Tue, 11 May 2010)
New Revision: 9739

Modified:
   trunk/gforge/cronjobs/mail/mailaliases.php
Log:
Don't store login with @ inside in the aliases file

Modified: trunk/gforge/cronjobs/mail/mailaliases.php
===================================================================
--- trunk/gforge/cronjobs/mail/mailaliases.php	2010-05-11 11:52:26 UTC (rev 9738)
+++ trunk/gforge/cronjobs/mail/mailaliases.php	2010-05-11 13:25:37 UTC (rev 9739)
@@ -175,8 +175,11 @@
 
 for ($i=0; $i<$rows; $i++) {
 	$user = db_result($res,$i,0);
-    $email = db_result($res,$i,1);
-    
+	if (preg_match('/@/', $user)) {
+		continue;
+	}
+	$email = db_result($res,$i,1);
+
 	if (array_key_exists($user, $aliases)) {
 		// A GForge alias was found outside the markers
 		unset($aliases[$user]);




More information about the Fusionforge-commits mailing list