summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-03-25 12:38:32 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-03-25 12:38:32 +0100
commit531c9564b3ec848f1869f57bccb41c6c529749b5 (patch)
treed3248e9a48766eba94c6fa0bdbd702800abf579d /settings
parentb92dad992f86caf3d30f5a10856c417c2a0a28bc (diff)
parent3eb5898f7b8f8b836b15dcb9c9a9213d7edbda96 (diff)
downloadnextcloud-server-531c9564b3ec848f1869f57bccb41c6c529749b5.tar.gz
nextcloud-server-531c9564b3ec848f1869f57bccb41c6c529749b5.zip
Merge pull request #7861 from owncloud/idn-domains-support-on-emails-master
idn have to be converted before being used
Diffstat (limited to 'settings')
-rw-r--r--settings/ajax/lostpassword.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ajax/lostpassword.php b/settings/ajax/lostpassword.php
index b5f47bbceab..88c2bee6142 100644
--- a/settings/ajax/lostpassword.php
+++ b/settings/ajax/lostpassword.php
@@ -6,7 +6,7 @@ OCP\JSON::callCheck();
$l=OC_L10N::get('core');
// Get data
-if( isset( $_POST['email'] ) && filter_var( $_POST['email'], FILTER_VALIDATE_EMAIL) ) {
+if( isset( $_POST['email'] ) && OC_Mail::validateAddress($_POST['email']) ) {
$email=trim($_POST['email']);
OC_Preferences::setValue(OC_User::getUser(), 'settings', 'email', $email);
OC_JSON::success(array("data" => array( "message" => $l->t("Email saved") )));