From: quix0r 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=3d8e3eec377306fff0a18ab1a3cff1ab7cf307dd;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!