From: Brenda Wallace Date: Sun, 26 Jul 2009 04:34:27 +0000 (+1200) Subject: lowercase tags using mb_convert_case(), which understands many more alphabets than... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d3a72431bef054217a71a97d3a13fd9b293fb86d;p=quix0rs-gnu-social.git lowercase tags using mb_convert_case(), which understands many more alphabets than I do. --- diff --git a/lib/util.php b/lib/util.php index c7c82dba29..d784bb7933 100644 --- a/lib/util.php +++ b/lib/util.php @@ -595,7 +595,8 @@ function common_tag_link($tag) function common_canonical_tag($tag) { - return strtolower(str_replace(array('-', '_', '.'), '', $tag)); + $tag = mb_convert_case($tag, MB_CASE_LOWER, "UTF-8"); + return str_replace(array('-', '_', '.'), '', $tag); } function common_valid_profile_tag($str)