summaryrefslogtreecommitdiffstats
path: root/lib
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
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')
-rw-r--r--lib/private/mail.php2
-rw-r--r--lib/public/util.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/mail.php b/lib/private/mail.php
index f691fda979d..79f51609631 100644
--- a/lib/private/mail.php
+++ b/lib/private/mail.php
@@ -125,7 +125,7 @@ class OC_Mail {
* @param string $emailAddress a given email address to be validated
* @return bool
*/
- public static function ValidateAddress($emailAddress) {
+ public static function validateAddress($emailAddress) {
$emailAddress = self::buildAsciiEmail($emailAddress);
return PHPMailer::ValidateAddress($emailAddress);
}
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;
}