diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-01-22 15:17:29 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-01-22 16:23:50 +0100 |
commit | 3d42ecea37527216b70833577a1d1f5cd82151f6 (patch) | |
tree | 794e75a20421b7bd9c04fc4d2a8bffc7301b5dfe /lib/private/mail.php | |
parent | b5b491d1bb12a869ddae7878e8aa441109419a00 (diff) | |
download | nextcloud-server-3d42ecea37527216b70833577a1d1f5cd82151f6.tar.gz nextcloud-server-3d42ecea37527216b70833577a1d1f5cd82151f6.zip |
Fix undefined offset 1 for wrong user mail address
* fixes Undefined offset: 1 at lib/private/mail.php#143
Diffstat (limited to 'lib/private/mail.php')
-rw-r--r-- | lib/private/mail.php | 3 |
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); } |