- bugfix after the fix for Issue #130 compiler exceptions got double escaped (Forum Topic 24199)

This commit is contained in:
Uwe.Tews@googlemail.com
2013-04-05 22:19:13 +00:00
parent 58f2227cce
commit f074a20ed5
3 changed files with 3 additions and 2 deletions
@@ -643,7 +643,7 @@ abstract class Smarty_Internal_TemplateCompilerBase {
$line = $this->lex->line;
}
$match = preg_split("/\n/", $this->lex->data);
$error_text = 'Syntax Error in template "' . $this->template->source->filepath . '" on line ' . $line . ' "' . htmlspecialchars(trim(preg_replace('![\t\r\n]+!', ' ', $match[$line - 1]))) . '" ';
$error_text = 'Syntax Error in template "' . $this->template->source->filepath . '" on line ' . $line . ' "' . trim(preg_replace('![\t\r\n]+!', ' ', $match[$line - 1])) . '" ';
if (isset($args)) {
// individual error message
$error_text .= $args;