From: Philipp Holzer Date: Wed, 27 Feb 2019 19:17:35 +0000 (+0100) Subject: admin mail list seems wrong escaped X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4a47425bfd64f5ba04139899880fce21ddcc0623;p=friendica.git admin mail list seems wrong escaped --- diff --git a/src/Core/Update.php b/src/Core/Update.php index 0a0f365d1e..1a1566ad84 100644 --- a/src/Core/Update.php +++ b/src/Core/Update.php @@ -209,7 +209,7 @@ class Update */ private static function updateFailed($update_id, $error_message) { //send the administrators an e-mail - $admin_mail_list = "'".implode("','", array_map(['Friendica\Database\DBA', 'escape'], explode(",", str_replace(" ", "", Config::get('config', 'admin_email')))))."'"; + $admin_mail_list = explode(",", str_replace(" ", "", Config::get('config', 'admin_email'))); $adminlist = DBA::select('user', ['uid', 'language', 'email'], ['`email` IN (%s)', $admin_mail_list]); // No valid result? @@ -251,7 +251,7 @@ class Update private static function updateSuccessfull($from_build, $to_build) { //send the administrators an e-mail - $admin_mail_list = "'".implode("','", array_map(['Friendica\Database\DBA', 'escape'], explode(",", str_replace(" ", "", Config::get('config', 'admin_email')))))."'"; + $admin_mail_list = explode(",", str_replace(" ", "", Config::get('config', 'admin_email'))); $adminlist = DBA::select('user', ['uid', 'language', 'email'], ['`email` IN (%s)', $admin_mail_list]); if (DBA::isResult($adminlist)) {