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:
5763a02
)
Use wfUrlProtocols() in ApiFormatBase instead of simply imploding $wgUrlProtocols...
author
Roan Kattouw
<catrope@users.mediawiki.org>
Wed, 13 Jul 2011 00:27:40 +0000
(
00:27
+0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Wed, 13 Jul 2011 00:27:40 +0000
(
00:27
+0000)
includes/api/ApiFormatBase.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiFormatBase.php
b/includes/api/ApiFormatBase.php
index
2d283b0
..
cddfb4a
100644
(file)
--- a/
includes/api/ApiFormatBase.php
+++ b/
includes/api/ApiFormatBase.php
@@
-265,7
+265,7
@@
See <a href='http://www.mediawiki.org/wiki/API'>complete documentation</a>, or
// encode all comments or tags as safe blue strings
$text = preg_replace( '/\<(!--.*?--|.*?)\>/', '<span style="color:blue;"><\1></span>', $text );
// identify URLs
- $protos =
implode( "|", $wgUrlProtocols
);
+ $protos =
wfUrlProtocols(
);
// This regex hacks around bug 13218 (" included in the URL)
$text = preg_replace( "#(($protos).*?)(")?([ \\'\"<>\n]|<|>|")#", '<a href="\\1">\\1</a>\\3\\4', $text );
// identify requests to api.php