Index: branches/unlabeled/unlabeled-1.26.8/core/kernel/parser/template_parser.php =================================================================== diff -u -r7072 -r7463 --- branches/unlabeled/unlabeled-1.26.8/core/kernel/parser/template_parser.php (.../template_parser.php) (revision 7072) +++ branches/unlabeled/unlabeled-1.26.8/core/kernel/parser/template_parser.php (.../template_parser.php) (revision 7463) @@ -144,7 +144,10 @@ function ConvertToCode($data) { - $code = '$o .= \''. str_replace("'", "\'", $data) .'\';'; + $data = str_replace("\\", "\\\\", $data); // escape any "\" + $data = str_replace("'", "\'", $data); // escape "'" + + $code = '$o .= \''. $data .'\';'; $code = explode("\n", $code); return $code; } @@ -192,6 +195,12 @@ $this->Application->CompiledFunctions[$f_name] = $real_name; + /*if (defined('DEBUG_MODE') && DEBUG_MODE && defined('DBG_PRE_PARSE') && DBG_PRE_PARSE) { + // this shows newly compiled functions (blocks) + global $debugger; + $f_body = "\t".'function '.$real_name.'($params)'."\n\t{\n".$f_body."\t}\n\n"; + $debugger->appendHTML($debugger->highlightString($f_body)); + }*/ } }