Index: trunk/phase3/includes/Parser.php |
— | — | @@ -1214,7 +1214,11 @@ |
1215 | 1215 | # [[Image:Foo.jpg|[http://example.com desc]]] <- having three ] in a row fucks up, |
1216 | 1216 | # the real problem is with the $e1 regex |
1217 | 1217 | # See bug 1300. |
1218 | | - if (preg_match( "/^\](.*)/s", $m[3], $n ) ) { |
| 1218 | + # |
| 1219 | + # Still some problems for cases where the ] is meant to be outside punctuation, |
| 1220 | + # and no image is in sight. See bug 2095. |
| 1221 | + # |
| 1222 | + if( $text !== '' && preg_match( "/^\](.*)/s", $m[3], $n ) ) { |
1219 | 1223 | $text .= ']'; # so that replaceExternalLinks($text) works later |
1220 | 1224 | $m[3] = $n[1]; |
1221 | 1225 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -194,6 +194,7 @@ |
195 | 195 | ogg, pdf, ps, rm, rpm, tar, tex, ttf and txt files based on the KDE |
196 | 196 | crystalsvg theme. |
197 | 197 | * Fixed a bug in Special:Newimages that made it impossible to search for '0' |
| 198 | +* (bug 2095) Triple-closing-bracket thing partly fixed |
198 | 199 | |
199 | 200 | |
200 | 201 | === Caveats === |