]> git.mxchange.org Git - mailer.git/commitdiff
Add slashes instead of SQL_ESCAPE()
authorRoland Häder <roland@mxchange.org>
Fri, 30 Oct 2009 10:22:57 +0000 (10:22 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 30 Oct 2009 10:22:57 +0000 (10:22 +0000)
inc/functions.php

index 5a3d2155ca18b4e7c9392c2a0e53a8ce4a1e2c5d..25610ef39c4263cbded07e7e7d4ddf3acc22c15c 100644 (file)
@@ -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!