From 287e0fc91ce200b08d7be8801c51d5b859ad8e4f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 23 Aug 2004 18:18:56 +0000 Subject: [PATCH] fixed probs pointed out by Joxean Koret --- phpgwapi/inc/common_functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index bd0f05923a..d092b36b26 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -1209,7 +1209,7 @@ } else { - if (preg_match('/<\/?script>/i',$val)) + if (preg_match('/<\/?[^>]*(script|onabort|onblur|onchange|onclick|ondblclick|onerror|onfocus|onkeydown|onkeypress|onkeyup|onload|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onreset|onselect|onsubmit|onunload|javascript)+[^>]*>/i',$val)) { unset($var[$key]); }