accept mailto: URIs as OStatus identifiers

This commit is contained in:
Evan Prodromou 2010-07-22 16:00:26 -07:00
parent 9b899eea75
commit dbb5e9e191

View File

@ -257,6 +257,12 @@ class ActivityUtils
*/
static function validateUri($uri)
{
// Check mailto: URIs first
if (preg_match('/^mailto:(.*)$/', $uri, $match)) {
return Validate::email($match[1], common_config('email', 'check_domain'));
}
if (Validate::uri($uri)) {
return true;
}