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
5a3d215
..
25610ef
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!