From 6365cf955c1fdb8e0af55f66f1853f13283e2240 Mon Sep 17 00:00:00 2001 From: miqrogroove Date: Wed, 13 Jun 2018 14:41:45 -0400 Subject: [PATCH] Patch for #5202 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add quotes to an erroneously unquoted callback so that PHP doesn’t treat it as a global constant. --- mod/register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/register.php b/mod/register.php index 81919df105..a5477d9671 100644 --- a/mod/register.php +++ b/mod/register.php @@ -134,7 +134,7 @@ function register_post(App $a) } // send email to admins - $admin_mail_list = "'" . implode("','", array_map(dbesc, explode(",", str_replace(" ", "", $a->config['admin_email'])))) . "'"; + $admin_mail_list = "'" . implode("','", array_map('dbesc', explode(",", str_replace(" ", "", $a->config['admin_email'])))) . "'"; $adminlist = q("SELECT uid, language, email FROM user WHERE email IN (%s)", $admin_mail_list );