Revision: 1074
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1074&view=rev
Author:   cimorrison
Date:     2009-03-25 14:44:42 +0000 (Wed, 25 Mar 2009)

Log Message:
-----------
Switched to using email validation function.

Modified Paths:
--------------
    mrbs/trunk/web/edit_users.php

Modified: mrbs/trunk/web/edit_users.php
===================================================================
--- mrbs/trunk/web/edit_users.php       2009-03-25 14:22:05 UTC (rev 1073)
+++ mrbs/trunk/web/edit_users.php       2009-03-25 14:44:42 UTC (rev 1074)
@@ -429,27 +429,18 @@
       print_footer(TRUE);
     }
     //
+    
     // Verify email adresses
-    require_once 'Mail/RFC822.php';
-  
     $email_var = get_form_var('Field_email', 'string');
     if (!isset($email_var))
     {
       $email_var = '';
     }
-    $emails = explode(',', $email_var);
-    $valid_email = new Mail_RFC822();
-    foreach ($emails as $email)
+    if (!validate_email_list($email_var))
     {
-      // if no email address is entered, this is OK, even if isValidInetAddress
-      // does not return TRUE
-      if ( !$valid_email->isValidInetAddress($email, $strict = FALSE)
-           && ('' != $email_var) )
-      {
-        // Now display this form again with an error message
-        Header("Location: edit_users.php?Action=Edit&Id=$Id&invalid_email=1");
-        exit;
-      }
+      // Now display this form again with an error message
+      Header("Location: edit_users.php?Action=Edit&Id=$Id&invalid_email=1");
+      exit;
     }
     //
     


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to