From b2e7797a24e16e9c02c3e19ed1d53f0886680233 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 15 Oct 2009 21:58:51 +0000 Subject: [PATCH] Fix saving with apostrophes --- admin/communication.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/admin/communication.php b/admin/communication.php index 57c7973..434899b 100644 --- a/admin/communication.php +++ b/admin/communication.php @@ -129,11 +129,11 @@ case 'dialog_choose': case 'email_save': print_r($_POST); $id = intval($_POST['emails_id']); - $name = mysql_real_escape_string($_POST['name']); - $description = mysql_real_escape_string($_POST['description']); - $from = mysql_real_escape_string($_POST['from']); - $subject = mysql_real_escape_string($_POST['subject']); - $bodyhtml = mysql_real_escape_string($_POST['bodyhtml']); + $name = mysql_real_escape_string(stripslashes($_POST['name'])); + $description = mysql_real_escape_string(stripslashes($_POST['description'])); + $from = mysql_real_escape_string(stripslashes($_POST['from'])); + $subject = mysql_real_escape_string(stripslashes($_POST['subject'])); + $bodyhtml = mysql_real_escape_string(stripslashes($_POST['bodyhtml'])); $type = mysql_real_escape_string($_POST['type']); $key = mysql_real_escape_string($_POST['key']); $fcid = mysql_real_escape_string($_POST['fcid']); @@ -229,7 +229,7 @@ case 'dialog_edit':
- +