Index: trunk/phase3/includes/api/ApiFormatBase.php |
— | — | @@ -265,7 +265,7 @@ |
266 | 266 | // encode all comments or tags as safe blue strings |
267 | 267 | $text = preg_replace( '/\<(!--.*?--|.*?)\>/', '<span style="color:blue;"><\1></span>', $text ); |
268 | 268 | // identify URLs |
269 | | - $protos = implode( "|", $wgUrlProtocols ); |
| 269 | + $protos = wfUrlProtocols(); |
270 | 270 | // This regex hacks around bug 13218 (" included in the URL) |
271 | 271 | $text = preg_replace( "#(($protos).*?)(")?([ \\'\"<>\n]|<|>|")#", '<a href="\\1">\\1</a>\\3\\4', $text ); |
272 | 272 | // identify requests to api.php |