summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-01-22 17:16:23 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-01-22 17:16:23 +0100
commit8f06bf7bc6894dc5bf7004f8f3f66107924727c7 (patch)
tree250a2adf2fb568e3995ca00f67d06934868e7882 /lib/private
parentf4a9164660508b405cd2fcfdd9732e742f69a4e3 (diff)
parent3d42ecea37527216b70833577a1d1f5cd82151f6 (diff)
downloadnextcloud-server-8f06bf7bc6894dc5bf7004f8f3f66107924727c7.tar.gz
nextcloud-server-8f06bf7bc6894dc5bf7004f8f3f66107924727c7.zip
Merge pull request #13598 from owncloud/fix-undefined-offset
Fix undefined offset 1 for wrong user mail address
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/mail.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/mail.php b/lib/private/mail.php
index 8ba7343e011..6b7eec6e080 100644
--- a/lib/private/mail.php
+++ b/lib/private/mail.php
@@ -126,6 +126,9 @@ class OC_Mail {
* @return bool
*/
public static function validateAddress($emailAddress) {
+ if (strpos($emailAddress, '@') === false) {
+ return false;
+ }
$emailAddress = self::buildAsciiEmail($emailAddress);
return PHPMailer::ValidateAddress($emailAddress);
}