From: Brion Vibber Date: Wed, 30 Nov 2011 00:37:35 +0000 (+0000) Subject: Apply the actual fix from r104635. :P X-Git-Tag: 1.31.0-rc.0~26224 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=7a8973e3e236e81ac661f32d5bc321096ace7b18;p=lhc%2Fweb%2Fwiklou.git Apply the actual fix from r104635. :P --- diff --git a/includes/search/SearchUpdate.php b/includes/search/SearchUpdate.php index 613e659730..a162d2b3df 100644 --- a/includes/search/SearchUpdate.php +++ b/includes/search/SearchUpdate.php @@ -62,7 +62,7 @@ class SearchUpdate implements DeferrableUpdate { "\\1\\2 \\2 \\2\\3", $text ); # Emphasize headings # Strip external URLs - $uc = "A-Za-z0-9_\\/:.,~%\\-+&;#?!=()@\\xA0-\\xFF"; + $uc = "A-Za-z0-9_\\/:.,~%\\-+&;#?!=()@\\x80-\\xFF"; $protos = "http|https|ftp|mailto|news|gopher"; $pat = "/(^|[^\\[])({$protos}):[{$uc}]+([^{$uc}]|$)/"; $text = preg_replace( $pat, "\\1 \\3", $text );