API: (bug 17182) Fix pretty printer so URLs with parentheses in them are autolinked...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 31 Jan 2009 13:05:12 +0000 (13:05 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 31 Jan 2009 13:05:12 +0000 (13:05 +0000)
RELEASE-NOTES
includes/api/ApiFormatBase.php

index 6060879..a12e189 100644 (file)
@@ -1,4 +1,4 @@
-               = MediaWiki release notes =
+= MediaWiki release notes =
 
 Security reminder: MediaWiki does not require PHP's register_globals
 setting since version 1.2.0. If you have it on, turn it *off* if you can.
@@ -137,6 +137,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 16483) Kill filesort in ApiQueryBacklinks caused by missing parentheses.
   Building query properly now using makeList()
 * Add "check" parameter to action=email
+* (bug 17182) Fix pretty printer so URLs with parentheses in them are
+  autolinked correctly
 
 === Languages updated in 1.15 ===
 
index 0c832aa..f6c2bb2 100644 (file)
@@ -209,7 +209,7 @@ See <a href='http://www.mediawiki.org/wiki/API'>complete documentation</a>, or
                // identify URLs
                $protos = implode("|", $wgUrlProtocols);
                # This regex hacks around bug 13218 (&quot; included in the URL)
-               $text = preg_replace("#(($protos).*?)(&quot;)?([ \\'\"()<\n])#", '<a href="\\1">\\1</a>\\3\\4', $text);
+               $text = preg_replace("#(($protos).*?)(&quot;)?([ \\'\"<\n])#", '<a href="\\1">\\1</a>\\3\\4', $text);
                // identify requests to api.php
                $text = preg_replace("#api\\.php\\?[^ \\()<\n\t]+#", '<a href="\\0">\\0</a>', $text);
                if( $this->mHelp ) {