Commit 31fce3f0 authored by Dries's avatar Dries
Browse files

- Fixed glitch in e-mail verification code.  Patch by Gerhard.
parent ff6976f6
......@@ -187,7 +187,7 @@ function user_validate_mail($mail) {
** allowed.
*/
$user = '[a-zA-Z0-9_\-\.]+';
$user = '[a-zA-Z0-9_\-\.\+]+';
$domain = '(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]\.?)+';
$ipv4 = '[0-9]{1,3}(\.[0-9]{1,3}){3}';
$ipv6 = '[0-9a-fA-F]{1,4}(\:[0-9a-fA-F]{1,4}){7}';
......
......@@ -187,7 +187,7 @@ function user_validate_mail($mail) {
** allowed.
*/
$user = '[a-zA-Z0-9_\-\.]+';
$user = '[a-zA-Z0-9_\-\.\+]+';
$domain = '(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]\.?)+';
$ipv4 = '[0-9]{1,3}(\.[0-9]{1,3}){3}';
$ipv6 = '[0-9a-fA-F]{1,4}(\:[0-9a-fA-F]{1,4}){7}';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment