Index: trunk/phase3/includes/api/ApiFormatBase.php |
— | — | @@ -188,9 +188,10 @@ |
189 | 189 | $text = preg_replace('/\<(!--.*?--|.*?)\>/', '<span style="color:blue;"><\1></span>', $text); |
190 | 190 | // identify URLs |
191 | 191 | $protos = "http|https|ftp|gopher"; |
192 | | - $text = ereg_replace("($protos)://[^ \\'\"()<\n]+", '<a href="\\0">\\0</a>', $text); |
| 192 | + # This regex hacks around bug 13218 (" included in the URL) |
| 193 | + $text = preg_replace("#(($protos)://.*?)(")?([ \\'\"()<\n])#", '<a href="\\1">\\1</a>\\3\\4', $text); |
193 | 194 | // identify requests to api.php |
194 | | - $text = ereg_replace("api\\.php\\?[^ \\()<\n\t]+", '<a href="\\0">\\0</a>', $text); |
| 195 | + $text = preg_replace("#api\\.php\\?[^ \\()<\n\t]+#", '<a href="\\0">\\0</a>', $text); |
195 | 196 | if( $this->mHelp ) { |
196 | 197 | // make strings inside * bold |
197 | 198 | $text = ereg_replace("\\*[^<>\n]+\\*", '<b>\\0</b>', $text); |
Index: trunk/phase3/includes/Title.php |
— | — | @@ -971,7 +971,7 @@ |
972 | 972 | } |
973 | 973 | |
974 | 974 | /** |
975 | | - * Is $wgUser is watching this page? |
| 975 | + * Is $wgUser watching this page? |
976 | 976 | * @return boolean |
977 | 977 | */ |
978 | 978 | public function userIsWatching() { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -71,6 +71,7 @@ |
72 | 72 | * (bug 13154) Introduced subpages flag to meta=siteinfo&siprop=namespaces |
73 | 73 | * (bug 13157) Added ucuserprefix parameter to list=usercontibs |
74 | 74 | * (bug 12394) Added rctitles parameter to list=recentchanges, making rcid retrieval easier |
| 75 | +* (bug 13218) Fix inclusion of " character in hyperlinks |
75 | 76 | |
76 | 77 | === Languages updated in 1.13 === |
77 | 78 | |