Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a regular expression to remove curly brackets

  • Loading branch information...
commit e6d2d523808aee9f3f0f29ea8c35097a1cce06de 1 parent c656a9c
moodler authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/weblib.php
View
2  lib/weblib.php
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.