From 4511461b5fd6247bbd84c4caddcf0355bef4ee18 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 21 Aug 2019 15:39:18 +0200 Subject: [PATCH] Fixed email check failing because of case sensitive compare --- src/xmlrpc/accounts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmlrpc/accounts.php b/src/xmlrpc/accounts.php index 9a3a934..ec09fd3 100644 --- a/src/xmlrpc/accounts.php +++ b/src/xmlrpc/accounts.php @@ -673,7 +673,7 @@ function xmlrpc_recover_email_account($method, $args) { return ACCOUNT_NOT_FOUND; } - if ($email != $account->email) { + if (strcasecmp($email, $account->email) != 0) { // Email case insensitive compare return EMAIL_DOESNT_MATCH; }