summaryrefslogtreecommitdiffstats
path: root/lib/public/util.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-03-24 15:35:07 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-03-24 15:35:07 +0100
commit3eb5898f7b8f8b836b15dcb9c9a9213d7edbda96 (patch)
treeae3bc7d4acd407f89c5a1f3c3346ecb6c8f5fef4 /lib/public/util.php
parentfb7f3008d33cb123f8b6931f6edf8697913b355a (diff)
downloadnextcloud-server-3eb5898f7b8f8b836b15dcb9c9a9213d7edbda96.tar.gz
nextcloud-server-3eb5898f7b8f8b836b15dcb9c9a9213d7edbda96.zip
use \OC_Mail::validateAddress() to validate the email address - fixes #7862
Diffstat (limited to 'lib/public/util.php')
-rw-r--r--lib/public/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/util.php b/lib/public/util.php
index 5cc7f0f4676..f02213f2446 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -266,7 +266,7 @@ class Util {
$host_name = \OC_Config::getValue('mail_domain', $host_name);
$defaultEmailAddress = $user_part.'@'.$host_name;
- if (\OC_Mail::ValidateAddress($defaultEmailAddress)) {
+ if (\OC_Mail::validateAddress($defaultEmailAddress)) {
return $defaultEmailAddress;
}