Permalink
Browse files

Fixed a regular expression to remove curly brackets

  • Loading branch information...
1 parent c656a9c commit e6d2d523808aee9f3f0f29ea8c35097a1cce06de moodler committed Aug 11, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
@@ -717,7 +717,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;
}

0 comments on commit e6d2d52

Please sign in to comment.