Index: trunk/phase3/includes/api/ApiFormatBase.php |
— | — | @@ -219,7 +219,7 @@ |
220 | 220 | // identify URLs |
221 | 221 | $protos = implode("|", $wgUrlProtocols); |
222 | 222 | # This regex hacks around bug 13218 (" included in the URL) |
223 | | - $text = preg_replace("#(($protos).*?)(")?([ \\'\"<\n])#", '<a href="\\1">\\1</a>\\3\\4', $text); |
| 223 | + $text = preg_replace("#(($protos).*?)(")?([ \\'\"<>\n]|<|>|")#", '<a href="\\1">\\1</a>\\3\\4', $text); |
224 | 224 | // identify requests to api.php |
225 | 225 | $text = preg_replace("#api\\.php\\?[^ \\()<\n\t]+#", '<a href="\\0">\\0</a>', $text); |
226 | 226 | if( $this->mHelp ) { |