]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/util.php
Unicodize a couple regexes for tags: fixes linking & detection of non-ASCII tags...
[quix0rs-gnu-social.git] / lib / util.php
index 85f49e4c59f40c57ae2b74c54fffd76a48dcf064..b710a4391bb7870a3d27762a9064d8b9fd9b24be 100644 (file)
@@ -784,7 +784,7 @@ function common_render_text($text)
 
     $r = preg_replace('/[\x{0}-\x{8}\x{b}-\x{c}\x{e}-\x{19}]/', '', $r);
     $r = common_replace_urls_callback($r, 'common_linkify');
-    $r = preg_replace('/(^|\&quot\;|\'|\(|\[|\{|\s+)#([\pL\pN_\-\.]{1,64})/e', "'\\1#'.common_tag_link('\\2')", $r);
+    $r = preg_replace('/(^|\&quot\;|\'|\(|\[|\{|\s+)#([\pL\pN_\-\.]{1,64})/ue', "'\\1#'.common_tag_link('\\2')", $r);
     // XXX: machine tags
     return $r;
 }