From 4090bcaee385a1327be725f109cdf48f7485994d Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 17 Oct 2006 19:46:35 +0000 Subject: [PATCH] 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 --- lib/filterlib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5