From 5a5930372629c773c20681915c2e9845697b0798 Mon Sep 17 00:00:00 2001 From: defacer Date: Mon, 9 Aug 2004 08:51:47 +0000 Subject: [PATCH] This seems to improve the regexp filtering by solving some problems where it was killing unarmed population... hope it works "better" now! --- lib/weblib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 53703ebc4f..81fd5ab312 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -741,7 +741,7 @@ function clean_text($text, $format=FORMAT_MOODLE) { $text = eregi_replace("([^a-z])on([a-z]+)([[:space:]]*)=", "\\1Xon\\2=", $text); /// Remove Javascript entities - $text = eregi_replace("&{([^};]*)};", "\\1", $text); + $text = eregi_replace('&\{([^};]*)\};', '\1', $text); return $text; } -- 2.39.5