diff options
author | Brion Vibber <brion@pobox.com> | 2010-07-28 11:56:55 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-07-28 11:56:55 -0700 |
commit | 189d34173311828ccfe0aec5f381ad26887384ce (patch) | |
tree | 7ab42efa3c30248879ba671500f7c3baab257779 /lib | |
parent | 5688c635a62ea109a9aa9565e40e994ea984cd95 (diff) | |
parent | db90bcb3293985818e2645827ed5a568f27d1511 (diff) |
Merge branch 'master' into testing
Diffstat (limited to 'lib')
-rw-r--r-- | lib/activityutils.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/activityutils.php b/lib/activityutils.php index 401fd7fc2..dd38d4e14 100644 --- a/lib/activityutils.php +++ b/lib/activityutils.php @@ -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; } |