* (bug 22541) Support image redirects when using ForeignAPIRepo.
* (bug 22967) Make edit summary length cut-off behave correctly for
multibyte characters.
+* (bug 8689) Long numeric lines no longer kill the parser.
=== API changes in 1.17 ===
* (bug 22738) Allow filtering by action type on query=logevent.
*/
function doTableStuff( $text ) {
wfProfileIn( __METHOD__ );
-
+
$lines = StringUtils::explode( "\n", $text );
+ $text = null;
$out = '';
$td_history = array(); # Is currently a td tag open?
$last_tag_history = array(); # Save history of last lag activated (td, th or caption)
foreach ( $lines as $outLine ) {
$line = trim( $outLine );
- if ( $line == '' ) { # empty line, go to next line
+ if ( $line === '' ) { # empty line, go to next line
$out .= $outLine."\n";
continue;
}
+
$first_character = $line[0];
$matches = array();
$t = substr( $t, 1 );
} else {
# paragraph
- if ( trim( $t ) == '' ) {
+ if ( trim( $t ) === '' ) {
if ( $paragraphStack ) {
$output .= $paragraphStack.'<br />';
$paragraphStack = false;