### Eclipse Workspace Patch 1.0 #P moodle_org_lib_files Index: weblib.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/weblib.php,v retrieving revision 1.853 diff -u -r1.853 weblib.php --- weblib.php 20 Mar 2007 20:47:57 -0000 1.853 +++ weblib.php 22 Mar 2007 14:07:03 -0000 @@ -1396,7 +1396,7 @@ } // First replace all ampersands not followed by html entity code - $string = preg_replace("/\&(?![a-z0-9#]{1,8};)/", "&", $string); + $string = preg_replace("/\&(?![a-zA-Z0-9#]{1,8};)/", "&", $string); if (!empty($CFG->filterall)) { $string = filter_string($string, $courseid);