X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffunctions.php;h=7ef9f2e04176de185abf81c2402184cb2b619a99;hp=3a9033aedb6af0e7e6916cf210a12de948311ecd;hb=a9fe1c6c31d8b6cbf669d38a8be83aa90c856cd6;hpb=fb997d3ca99f1ca578be196e319d0b92ff2e5390 diff --git a/inc/functions.php b/inc/functions.php index 3a9033aedb..7ef9f2e041 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -294,7 +294,7 @@ function loadTemplate ($template, $return = false, $content = array()) { $eval = '$ret = "' . compileCode(escapeQuotes($ret)) . '";'; } elseif (substr($template, 0, 3) == 'js_') { // JavaScripts don't like entities and timings - $eval = '$ret = decodeEntities("' . compileRawCode(escapeQuotes($GLOBALS['tpl_content'])) . '");'; + $eval = '$ret = decodeEntities("' . compileRawCode(addslashes($GLOBALS['tpl_content'])) . '");'; } else { // Prepare eval() command $eval = '$ret = "' . compileCode(escapeQuotes($GLOBALS['tpl_content'])) . '";';