projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4939d0e
)
Add slashes instead of SQL_ESCAPE()
author
Roland Häder
<roland@mxchange.org>
Fri, 30 Oct 2009 10:22:57 +0000
(10:22 +0000)
committer
Roland Häder
<roland@mxchange.org>
Fri, 30 Oct 2009 10:22:57 +0000
(10:22 +0000)
inc/functions.php
patch
|
blob
|
history
diff --git
a/inc/functions.php
b/inc/functions.php
index 5a3d2155ca18b4e7c9392c2a0e53a8ce4a1e2c5d..25610ef39c4263cbded07e7e7d4ddf3acc22c15c 100644
(file)
--- 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!