From 1818a969a6233612e854ad90b78046eea535b734 Mon Sep 17 00:00:00 2001 From: quix0r Date: Thu, 5 Nov 2009 17:54:37 +0000 Subject: [PATCH] Use compileRawCode() for loading email templates --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index dce5f6d7af..2add576617 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -498,7 +498,7 @@ function loadEmailTemplate ($template, $content = array(), $UID = '0') { $GLOBALS['tpl_content'] = readFromFile($FQFN); // Run code - $GLOBALS['tpl_content'] = "\$newContent = decodeEntities(\"".compileCode(smartAddSlashes($GLOBALS['tpl_content']))."\");"; + $GLOBALS['tpl_content'] = "\$newContent = decodeEntities(\"".compileRawCode(smartAddSlashes($GLOBALS['tpl_content']))."\");"; eval($GLOBALS['tpl_content']); } elseif (!empty($template)) { // Template file not found! -- 2.39.5