From a4340107482a45d9a1b04dbfda9a6c0578c75e59 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 5 Jun 2009 17:43:35 +0000 Subject: Closes #639: * Metastrings can be searched either case sensitive or insensitive modes. * Tags now have case lowered in a UTF8 safe way (requires mbstring support). * Introducing mb_wrapper.php containing multibyte wrapper functions. * Version bump. * Introduces #1043 for consideration. git-svn-id: https://code.elgg.org/elgg/trunk@3322 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/metadata.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/lib/metadata.php') diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index ebc425f17..79a5faacf 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -797,8 +797,8 @@ if (is_string($string)) { $ar = explode(",",$string); - $ar = array_map('trim', $ar); // trim blank spaces - //$ar = array_map('strtolower', $ar); // make lower case : [Marcus Povey 20090210 - Commented out since strtolower is not UTF8 safe] + $ar = array_map('trim', $ar); // trim blank spaces + $ar = array_map('elgg_strtolower', $ar); // make lower case : [Marcus Povey 20090605 - Using mb wrapper function using UTF8 safe function where available] $ar = array_filter($ar, 'is_not_null'); // Remove null values return $ar; } -- cgit v1.2.3