From: defacer Date: Mon, 9 Aug 2004 08:51:47 +0000 (+0000) Subject: This seems to improve the regexp filtering by solving some problems where X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5a5930372629c773c20681915c2e9845697b0798;p=moodle.git This seems to improve the regexp filtering by solving some problems where it was killing unarmed population... hope it works "better" now! --- 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; }