Index: branches/RC/core/units/users/users_event_handler.php =================================================================== diff -u -r11355 -r11375 --- branches/RC/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 11355) +++ branches/RC/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 11375) @@ -738,7 +738,7 @@ $object =& $this->Application->recallObject('u', null, Array('skip_autoload' => true)); // TODO: change theme too /* @var $object UsersItem */ - if (preg_match("/^[_a-zA-Z0-9-\.]+@[a-zA-Z0-9-\.]+\.[a-z]{2,4}$/", $friend_email)) + if (preg_match('/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', $friend_email)) { $send_params = array(); $send_params['to_email']=$friend_email; @@ -795,7 +795,7 @@ function OnSubscribeQuery(&$event) { $user_email = $this->Application->GetVar('subscriber_email'); - if (preg_match("/^[_a-zA-Z0-9-\.]+@[a-zA-Z0-9-\.]+\.[a-z]{2,4}$/", $user_email)) { + if (preg_match('/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', $user_email)) { $object =& $this->Application->recallObject($this->Prefix.'.subscriber', null, Array('skip_autoload' => true)); /* @var $object UsersItem */ @@ -833,7 +833,7 @@ /* @var $object UsersItem */ $user_email = $this->Application->RecallVar('SubscriberEmail'); - if (preg_match("/^[_a-zA-Z0-9-\.]+@[a-zA-Z0-9-\.]+\.[a-z]{2,4}$/", $user_email)) { + if (preg_match('/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', $user_email)) { $this->RemoveRequiredFields($object); $object->Load($user_email, 'Email');