diff options
author | Philip Häusler <msquare@notrademark.de> | 2012-05-19 17:08:08 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2012-05-19 17:08:08 +0200 |
commit | 41e10798a79895dad9d986c87f6523b9cbf9e702 (patch) | |
tree | 830006acd5ed9b27997bbef885c369ced38ee110 /includes/sys_page.php | |
parent | 0114edc0ca297c681ef94d5dfba3d2d592a3db2c (diff) |
#52 accept + in mail-address
Diffstat (limited to 'includes/sys_page.php')
-rw-r--r-- | includes/sys_page.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/sys_page.php b/includes/sys_page.php index 2e39ff43..06e41274 100644 --- a/includes/sys_page.php +++ b/includes/sys_page.php @@ -43,7 +43,7 @@ function strip_item($item) { * Überprüft eine E-Mail-Adresse. */ function check_email($email) { - return (bool) preg_match("#^([a-zA-Z0-9_\-])+(\.([a-zA-Z0-9_\-])+)*@((\[(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5]))\]))|((([\p{L}0-9])+(([\-])+([\p{L}0-9])+)*\.)+([\p{L}])+(([\-])+([\p{L}0-9])+)*))$#u", $email); + return (bool) preg_match("#^([a-zA-Z0-9_+\-])+(\.([a-zA-Z0-9_+\-])+)*@((\[(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5]))\]))|((([\p{L}0-9])+(([\-])+([\p{L}0-9])+)*\.)+([\p{L}])+(([\-])+([\p{L}0-9])+)*))$#u", $email); } /** |