From 56f103b21c37d17d277ec301ba73574ecc6b2688 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 9 Aug 2022 15:15:17 +0200 Subject: [PATCH] another change to make preprocessor more tolerant with > in attributes eg. label="> %s" fixes Admin >> Applications >> EPL Functions >> CTI --- api/etemplate.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/etemplate.php b/api/etemplate.php index 43e6861669..aeef2f1750 100644 --- a/api/etemplate.php +++ b/api/etemplate.php @@ -175,6 +175,9 @@ function send_template() return $tag . '>'; }, $str); + // replace just description, as they often contain >, like label="> %s" + $str = preg_replace('##s', '', $str); + // modify <(vfs-mime|link-string|link-list) --> #s', static function(array $matches) + $str = preg_replace_callback('#<(et2|records)-([a-z-]+)\s(.*?")\s*>\s*<#s', static function(array $matches) { $attrs = parseAttrs($matches[3]);