dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f79d1d3
)
Apply the actual fix from r104635. :P
author
Brion Vibber
<brion@users.mediawiki.org>
Wed, 30 Nov 2011 00:37:35 +0000
(
00:37
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Wed, 30 Nov 2011 00:37:35 +0000
(
00:37
+0000)
includes/search/SearchUpdate.php
patch
|
blob
|
history
diff --git
a/includes/search/SearchUpdate.php
b/includes/search/SearchUpdate.php
index
613e659
..
a162d2b
100644
(file)
--- 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_\\/:.,~%\\-+&;#?!=()@\\x
A
0-\\xFF";
+ $uc = "A-Za-z0-9_\\/:.,~%\\-+&;#?!=()@\\x
8
0-\\xFF";
$protos = "http|https|ftp|mailto|news|gopher";
$pat = "/(^|[^\\[])({$protos}):[{$uc}]+([^{$uc}]|$)/";
$text = preg_replace( $pat, "\\1 \\3", $text );