diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-25 12:38:32 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-25 12:38:32 +0100 |
commit | 531c9564b3ec848f1869f57bccb41c6c529749b5 (patch) | |
tree | d3248e9a48766eba94c6fa0bdbd702800abf579d /settings | |
parent | b92dad992f86caf3d30f5a10856c417c2a0a28bc (diff) | |
parent | 3eb5898f7b8f8b836b15dcb9c9a9213d7edbda96 (diff) | |
download | nextcloud-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.php | 2 |
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") ))); |