]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correctly include UTF-8 alphanum chars in tags
authorEvan Prodromou <evan@status.net>
Tue, 2 Aug 2011 18:03:12 +0000 (14:03 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 2 Aug 2011 18:03:12 +0000 (14:03 -0400)
lib/util.php

index d8eee3d1341d098541e7f6d81d8927095d4c14ee..629d8326fd2e0669c629587e7b3931d20ce0a4bd 100644 (file)
@@ -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;