From: Roland Häder Date: Fri, 30 Oct 2009 10:22:57 +0000 (+0000) Subject: Add slashes instead of SQL_ESCAPE() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=64fd41598200f0a77acc0a5a34008fab33996a1a;p=mailer.git Add slashes instead of SQL_ESCAPE() --- diff --git a/inc/functions.php b/inc/functions.php index 5a3d2155ca..25610ef39c 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -529,7 +529,7 @@ function loadEmailTemplate ($template, $content = array(), $UID = 0) { $GLOBALS['tpl_content'] = readFromFile($FQFN); // Run code - $GLOBALS['tpl_content'] = "\$newContent = decodeEntities(\"".compileCode($GLOBALS['tpl_content'])."\");"; + $GLOBALS['tpl_content'] = "\$newContent = decodeEntities(\"".compileCode(smartAddSlashes($GLOBALS['tpl_content']))."\");"; eval($GLOBALS['tpl_content']); } elseif (!empty($template)) { // Template file not found!