]> git.mjollnir.org Git - moodle.git/commitdiff
This seems to improve the regexp filtering by solving some problems where
authordefacer <defacer>
Mon, 9 Aug 2004 08:51:47 +0000 (08:51 +0000)
committerdefacer <defacer>
Mon, 9 Aug 2004 08:51:47 +0000 (08:51 +0000)
it was killing unarmed population... hope it works "better" now!

lib/weblib.php

index 53703ebc4f0699453c58f4f94477695f9b2379ba..81fd5ab312a12fd1c586ecfb6f1e16c3ef085c34 100644 (file)
@@ -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;
     }