Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/data/PhabricatorAuthInviteAction.php
Context not available. | |||||
$email = new PhutilEmailAddress($address); | $email = new PhutilEmailAddress($address); | ||||
$result->emailAddress = phutil_utf8_strtolower($email->getAddress()); | $result->emailAddress = phutil_utf8_strtolower($email->getAddress()); | ||||
if (!preg_match('/^\S+@\S+\.\S+\z/', $result->emailAddress)) { | if (!@preg_match('/^\S+@\S+\.\S+\z/', $result->emailAddress)) { | ||||
$result->issues[] = self::ISSUE_PARSE; | $result->issues[] = self::ISSUE_PARSE; | ||||
} | } | ||||
Context not available. | |||||
throw new Exception(pht('Invite action is not a send action!')); | throw new Exception(pht('Invite action is not a send action!')); | ||||
} | } | ||||
if (!preg_match('/{\$INVITE_URI}/', $template)) { | if (!@preg_match('/{\$INVITE_URI}/', $template)) { | ||||
throw new Exception(pht('Invite template does not include invite URI!')); | throw new Exception(pht('Invite template does not include invite URI!')); | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0