From: skodak Date: Tue, 17 Oct 2006 19:46:35 +0000 (+0000) Subject: Activitynames filter case insensitive again for non-ascii languages MDL-6054 - I... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4090bcaee385a1327be725f109cdf48f7485994d;p=moodle.git Activitynames filter case insensitive again for non-ascii languages MDL-6054 - I hope it will not be choking on invalid UTF-8 data; merged from MOODLE_17_STABLE --- diff --git a/lib/filterlib.php b/lib/filterlib.php index 3b47146d93..fec3a7f9d1 100644 --- a/lib/filterlib.php +++ b/lib/filterlib.php @@ -164,8 +164,9 @@ function filter_phrases ($text, &$link_array, $ignoretagsopen=NULL, $ignoretagsc } } + $u = empty($CFG->unicodedb) ? '' : 'u'; //regex unicode modifier /// Regular expression modifiers - $modifiers = ($linkobject->work_casesensitive) ? 's' : 'is'; + $modifiers = ($linkobject->work_casesensitive) ? 's' : 'is'.$u; /// Do we need to do a fullmatch? /// If yes then go through and remove any non full matching entries