From edb3f704b969769ce20b2e1e7d4504a570e42231 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 2 Aug 2011 14:03:12 -0400 Subject: [PATCH] correctly include UTF-8 alphanum chars in tags --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5