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;