[debian-edu-commits] debian-edu/pkg-team/ 01/01: debian/patches: Fix 1012_allow-one-level-domains-in-email-addresses.patch. Fix email template checks is tests::is_email().

Mike Gabriel sunweaver at debian.org
Wed Aug 26 14:15:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository gosa.

commit 4e4002d84a0fe625be4d11ec809b89556a147cd8
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Aug 26 16:15:21 2015 +0200

    debian/patches: Fix 1012_allow-one-level-domains-in-email-addresses.patch. Fix email template checks is tests::is_email().
---
 debian/patches/1012_allow-one-level-domains-in-email-addresses.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/patches/1012_allow-one-level-domains-in-email-addresses.patch b/debian/patches/1012_allow-one-level-domains-in-email-addresses.patch
index cfa68e7..1043142 100644
--- a/debian/patches/1012_allow-one-level-domains-in-email-addresses.patch
+++ b/debian/patches/1012_allow-one-level-domains-in-email-addresses.patch
@@ -12,7 +12,7 @@ Abstract:
      }
      if ($template){
 -      return preg_match ("/^[._a-z0-9{\[\]}%\+-]+@[_a-{}\[\]%z0-9-]+(\.[a-z0-9-]+)(\.[a-z0-9-]+)*$/i",
-+      return preg_match ("/^[^0-9][a-zA-Z0-9_{\[\]}%]+([.][a-zA-Z0-9_{\[\]}%]\+-]+)*[@][a-zA-Z0-9_-{\[\]}%]+([.][a-zA-Z0-9_-{\[\]}%]+)*$/",
++      return preg_match ("/^[^0-9][a-zA-Z0-9_{\[\]}%]+([.][a-zA-Z0-9_{\[\]}%\+-]+)*[@][a-zA-Z0-9_{\[\]}%-]+([.][a-zA-Z0-9_{\[\]}%-]+)*$/",
            $address);
      } else {
 -      return preg_match ("/^[._a-z0-9\+-]+@[_a-z0-9-]+(\.[a-z0-9i-]+)(\.[a-z0-9-]+)*$/i",

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/gosa.git



More information about the debian-edu-commits mailing list