From c578c639527fad98ae60676ea58860809462d4dc Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 4 Feb 2012 17:08:05 -0500 Subject: Fixes #1853 matching UTF8 characters in usernames --- mod/thewire/start.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/thewire/start.php') diff --git a/mod/thewire/start.php b/mod/thewire/start.php index 202e3d1d6..fdaf91355 100644 --- a/mod/thewire/start.php +++ b/mod/thewire/start.php @@ -219,7 +219,7 @@ function thewire_filter($text) { // usernames $text = preg_replace( - '/(^|[^\w])@([\w.]+)/', + '/(^|[^\w])@([\p{L}\p{Nd}._]+)/u', '$1@$2', $text); -- cgit v1.2.3