admin mail list seems wrong escaped

2022.09-rc
Philipp Holzer 2019-02-27 20:17:35 +01:00
rodzic eacbc60ca7
commit 4a47425bfd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 517BE60E2CE5C8A5
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -209,7 +209,7 @@ class Update
*/ */
private static function updateFailed($update_id, $error_message) { private static function updateFailed($update_id, $error_message) {
//send the administrators an e-mail //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]); $adminlist = DBA::select('user', ['uid', 'language', 'email'], ['`email` IN (%s)', $admin_mail_list]);
// No valid result? // No valid result?
@ -251,7 +251,7 @@ class Update
private static function updateSuccessfull($from_build, $to_build) private static function updateSuccessfull($from_build, $to_build)
{ {
//send the administrators an e-mail //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]); $adminlist = DBA::select('user', ['uid', 'language', 'email'], ['`email` IN (%s)', $admin_mail_list]);
if (DBA::isResult($adminlist)) { if (DBA::isResult($adminlist)) {