From: skodak Date: Thu, 22 Mar 2007 16:37:55 +0000 (+0000) Subject: MDL-9007 weblib.php breaks upper-case hex Numeric Character References; patch by... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cb6a4f09ee0a5e7e1070bff070264b15911ee638;p=moodle.git MDL-9007 weblib.php breaks upper-case hex Numeric Character References; patch by Gareth Morgan; merged from MOODLE_18_STABLE --- diff --git a/lib/weblib.php b/lib/weblib.php index 39a1d35a71..2e3451afbc 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1396,7 +1396,7 @@ function format_string ($string, $striplinks=true, $courseid=NULL ) { } // 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);