From 6d37e224990ffd1f0152f3ec814ae15820d8dbb9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 16 Aug 2021 19:54:58 +0200 Subject: [PATCH] web-components must not be self-closing (no "", but "") --- api/etemplate.php | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/api/etemplate.php b/api/etemplate.php index 8f47eabfd7..813f14b7aa 100644 --- a/api/etemplate.php +++ b/api/etemplate.php @@ -14,9 +14,8 @@ use EGroupware\Api; // add et2- prefix to following widgets/tags /* disabling v/hbox replacement for now as it fails with nextmatch headers -const ADD_ET2_PREFIX_REGEXP = '#(\s|^|>)<((/?)([vh]?box|button))(\s|/?>)#m';*/ -const ADD_ET2_PREFIX_REGEXP = '#(\s|^|>)<((/?)(box|button))(\s|/?>)#m'; -const ADD_ET2_PREFIX_REPLACE = '$1<$3et2-$4$5'; +const ADD_ET2_PREFIX_REGEXP = '#<((/?)([vh]?box|textbox|button))(/?|\s[^>]*)>#m';*/ +const ADD_ET2_PREFIX_REGEXP = '#<((/?)(box|textbox|button))(/?|\s[^>]*)>#m'; // switch evtl. set output-compression off, as we cant calculate a Content-Length header with transparent compression ini_set('zlib.output_compression', 0); @@ -25,7 +24,7 @@ $GLOBALS['egw_info'] = array( 'flags' => array( 'currentapp' => 'api', 'noheader' => true, - // misuse session creation callback to send the template, in case we have no session + // miss-use session creation callback to send the template, in case we have no session 'autocreate_session_callback' => 'send_template', 'nocachecontrol' => true, ) @@ -66,16 +65,12 @@ function send_template() // fix -->