mirror of
https://github.com/typecho/typecho.git
synced 2025-04-21 18:21:53 +02:00
fix: Support plus in email address
fix: add support in email address (just like example+typecho@gmail.com)
This commit is contained in:
parent
c2a71c2f19
commit
2a8b11f48b
@ -209,7 +209,7 @@ class Typecho_Validate
|
||||
*/
|
||||
public static function email($str)
|
||||
{
|
||||
return preg_match("/^[_a-z0-9-\.]+@([-a-z0-9]+\.)+[a-z]{2,}$/i", $str);
|
||||
return preg_match("/^[_a-z0-9-\.+]+@([-a-z0-9]+\.)+[a-z]{2,}$/i", $str);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user