Revision: 5786
          http://ipcop.svn.sourceforge.net/ipcop/?rev=5786&view=rev
Author:   owes
Date:     2011-08-13 12:09:28 +0000 (Sat, 13 Aug 2011)

Log Message:
-----------
Add some more characters to valid email addresses

Modified Paths:
--------------
    ipcop/trunk/src/libs/general-functions.pl

Modified: ipcop/trunk/src/libs/general-functions.pl
===================================================================
--- ipcop/trunk/src/libs/general-functions.pl   2011-08-13 10:56:52 UTC (rev 
5785)
+++ ipcop/trunk/src/libs/general-functions.pl   2011-08-13 12:09:28 UTC (rev 
5786)
@@ -8,6 +8,14 @@
 # the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version.
 #
+# IPCop is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with IPCop.  If not, see <http://www.gnu.org/licenses/>.
+#
 # (c) The SmoothWall Team
 # Copyright (C) 2002 Alex Hudson - getcgihash() rewrite
 # Copyright (C) 2002 Bob Grant <b...@cache.ucr.edu> - validmac()
@@ -471,7 +479,7 @@
 sub validemail
 {
     my $mail = shift;
-    return 0 if ($mail !~ /^([0-9a-zA-Z\.\-\_]+)\@([0-9a-zA-Z\.\-]+)$/);
+    return 0 if ($mail !~ /^([0-9a-zA-Z\.\-\_\=\+\#]+)\@([0-9a-zA-Z\.\-]+)$/);
     # 2 parts, check 2nd part for valid domain
     return validdomainname($2);
 }


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

------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy 
to use, easy to manage, easy to install, easy to extend. 
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to