From a1d90ea2373a062a5a21a5356b2d38108b521954 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 9 Apr 2013 12:47:44 +0000 Subject: [PATCH] get regexp to play nice with opening script tag without attributes --- phpgwapi/inc/class.egw_framework.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_framework.inc.php b/phpgwapi/inc/class.egw_framework.inc.php index 441f63eb89..55991ad3ca 100644 --- a/phpgwapi/inc/class.egw_framework.inc.php +++ b/phpgwapi/inc/class.egw_framework.inc.php @@ -902,7 +902,7 @@ window.egw.LAB.script( if (isset($GLOBALS['egw_info']['flags']['java_script'])) { // Strip out any script tags, this needs to be executed as anonymous function - $GLOBALS['egw_info']['flags']['java_script'] = preg_replace(array('/(]+>)([^<]*)/is','/<\/script>/'),array('$2',''),$GLOBALS['egw_info']['flags']['java_script']); + $GLOBALS['egw_info']['flags']['java_script'] = preg_replace(array('/(]*>)([^<]*)/is','/<\/script>/'),array('$2',''),$GLOBALS['egw_info']['flags']['java_script']); if(trim($GLOBALS['egw_info']['flags']['java_script']) != '') { $java_script .= '\n";