From: Evan Prodromou Date: Tue, 2 Aug 2011 18:03:12 +0000 (-0400) Subject: correctly include UTF-8 alphanum chars in tags X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=edb3f704b969769ce20b2e1e7d4504a570e42231;p=quix0rs-gnu-social.git correctly include UTF-8 alphanum chars in tags --- diff --git a/lib/util.php b/lib/util.php index d8eee3d134..629d8326fd 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1097,7 +1097,7 @@ function common_tag_link($tag) function common_canonical_tag($tag) { // only alphanum - $tag = preg_replace('/[^\pL\pN]/', '', $tag); + $tag = preg_replace('/[^\pL\pN]/u', '', $tag); $tag = mb_convert_case($tag, MB_CASE_LOWER, "UTF-8"); $tag = substr($tag, 0, 64); return $tag;