We have problems with adding multi-line text if template variable contains some special symbols( EX: '(',')','.','['.']' ).
Problem in CreateTemplate.inc line 1400
[code]self::$_document = preg_replace(
'/\\' . self::$_templateSymbol . $args[0]
. '\\' . self::$_templateSymbol . '/',
$values,
self::$_document,
1
);[/code]
So if $arg[0] contain "special" symbols it doesn't work. It should be something like this
[code]self::$_document = preg_replace(
'/\\' . self::$_templateSymbol . str_replace(array('(',')','[',']','.'), array('\\(','\\)','\\[','\\]','\\.'), $args[0])
. '\\' . self::$_templateSymbol . '/',
$values,
self::$_document,
1
);[/code]
Could you fix it?