Skip to content

Commit

Permalink
fix validemail registration check to allow longer label parts
Browse files Browse the repository at this point in the history
same fix for 2.2.5 branch so package can be made for new test installs
  • Loading branch information
nkissebe authored and zweidner committed Jun 19, 2018
1 parent 02a8902 commit 00fc260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/components/com_members/helpers/utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public static function validpassword($password)
*/
public static function validemail($email)
{
if (preg_match("/^[_\+\.\%0-9a-zA-Z-]+@([0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/", $email))
if (preg_match("/^[_\+\.\%0-9a-zA-Z-]+@([0-9a-zA-Z-]+\.)+[a-zA-Z]{2,63}$/", $email))
{
return true;
}
Expand Down

0 comments on commit 00fc260

Please sign in to comment.