From b1033e23694fc959dc0fc2643ebdcdb1c585aca5 Mon Sep 17 00:00:00 2001 From: james Date: Sat, 6 Feb 2010 22:05:39 +0000 Subject: [PATCH] Fix communication sending when replacements have apostrohpe's in them --- admin/communication.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/communication.php b/admin/communication.php index 1bdb5b97..42be3438 100644 --- a/admin/communication.php +++ b/admin/communication.php @@ -674,7 +674,7 @@ case "email_get_list": '$emailqueueid', '".mysql_real_escape_string($u['email'])."', '".mysql_real_escape_string($u['name'])."', - '".json_encode($replacements)."', + '".mysql_real_escape_string(json_encode($replacements))."', NULL)"); echo mysql_error(); } @@ -832,7 +832,7 @@ case "email_get_list": '$emailqueueid', '".mysql_real_escape_string($toemail)."', '".mysql_real_escape_string($toname)."', - '".json_encode($replacements)."', + '".mysql_real_escape_string(json_encode($replacements))."', NULL)"); echo mysql_error(); }