Index: filter.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/filter/filter.module,v
retrieving revision 1.204
diff -u -r1.204 filter.module
--- filter.module 21 Jan 2008 15:08:24 -0000 1.204
+++ filter.module 14 Feb 2008 08:12:50 -0000
@@ -736,13 +736,13 @@
$text = ' '. $text .' ';
// Match absolute URLs.
- $text = preg_replace_callback("`(
|
|
|[ \n\r\t\(])((http://|https://|ftp://|mailto:|smb://|afp://|file://|gopher://|news://|ssl://|sslv2://|sslv3://|tls://|tcp://|udp://)([a-zA-Z0-9@:%_+*~#?&=.,/;-]*[a-zA-Z0-9@:%_+*~#&=/;-]))([.,?!]*?)(?=(||
|[ \n\r\t\)]))`i", '_filter_url_parse_full_links', $text);
+ $text = preg_replace_callback("`(|
|
|[ \n\r\t\(])((http://|https://|ftp://|mailto:|smb://|afp://|file://|gopher://|news://|ssl://|sslv2://|sslv3://|tls://|tcp://|udp://)([\p{L}a-zA-Z0-9@:%_+*~#?&=.,/;-]*[\p{L}a-zA-Z0-9@:%_+*~#&=/;-]))([.,?!]*?)(?=(||
|[ \n\r\t\)]))`i", '_filter_url_parse_full_links', $text);
// Match e-mail addresses.
$text = preg_replace("`(|
|
|[ \n\r\t\(])([A-Za-z0-9._-]+@[A-Za-z0-9._+-]+\.[A-Za-z]{2,4})([.,?!]*?)(?=(||
|[ \n\r\t\)]))`i", '\1\2\3', $text);
// Match www domains/addresses.
- $text = preg_replace_callback("`(|
|[ \n\r\t\(])(www\.[a-zA-Z0-9@:%_+*~#?&=.,/;-]*[a-zA-Z0-9@:%_+~#\&=/;-])([.,?!]*?)(?=(||
|[ \n\r\t\)]))`i", '_filter_url_parse_partial_links', $text);
+ $text = preg_replace_callback("`(|
|[ \n\r\t\(])(www\.[\p{L}a-zA-Z0-9@:%_+*~#?&=.,/;-]*[\p{L}a-zA-Z0-9@:%_+~#\&=/;-])([.,?!]*?)(?=(||
|[ \n\r\t\)]))`i", '_filter_url_parse_partial_links', $text);
$text = substr($text, 1, -1);
return $text;