diff options
author | Brenda Wallace <shiny@cpan.org> | 2009-07-26 16:34:27 +1200 |
---|---|---|
committer | Brenda Wallace <shiny@cpan.org> | 2009-07-26 16:34:27 +1200 |
commit | d3a72431bef054217a71a97d3a13fd9b293fb86d (patch) | |
tree | 968d44f08ddae3cf3c2ed7cda992308d3317cabb /lib | |
parent | 932eab074d954b7f9add4a8b625c74a86b3bd8e1 (diff) |
lowercase tags using mb_convert_case(), which understands many more alphabets than I do.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index c7c82dba2..d784bb793 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) |