Revision: 48311 Author: demon Date: 2009-03-11 13:28:22 +0000 (Wed, 11 Mar 2009)
Log Message: ----------- (bug 17897) Uninitialized string offset in <pre> tags. Patch by Luigi Corsaro. No parser test regressions. Modified Paths: -------------- trunk/phase3/CREDITS trunk/phase3/RELEASE-NOTES trunk/phase3/includes/parser/Parser.php Modified: trunk/phase3/CREDITS =================================================================== --- trunk/phase3/CREDITS 2009-03-11 13:11:23 UTC (rev 48310) +++ trunk/phase3/CREDITS 2009-03-11 13:28:22 UTC (rev 48311) @@ -70,6 +70,7 @@ * Juliano F. Ravasi * Lucas Garczewski * Louperivois +* Luigi Corsaro * Manuel Menal * Marcin Cieślak * Marooned Modified: trunk/phase3/RELEASE-NOTES =================================================================== --- trunk/phase3/RELEASE-NOTES 2009-03-11 13:11:23 UTC (rev 48310) +++ trunk/phase3/RELEASE-NOTES 2009-03-11 13:28:22 UTC (rev 48311) @@ -258,6 +258,7 @@ * (bug 17860) Moving a page in the "MediaWiki" namespace using SuppressRedirect no longer corrupts the message cache * (bug 17900) Fixed User Groups interface log display after saving groups. +* (bug 17897) Fixed string offset error in <pre> tags == API changes in 1.15 == * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions Modified: trunk/phase3/includes/parser/Parser.php =================================================================== --- trunk/phase3/includes/parser/Parser.php 2009-03-11 13:11:23 UTC (rev 48310) +++ trunk/phase3/includes/parser/Parser.php 2009-03-11 13:28:22 UTC (rev 48311) @@ -2088,7 +2088,7 @@ $inBlockElem = true; } } else if ( !$inBlockElem && !$this->mInPre ) { - if ( ' ' == $t{0} and ( $this->mLastSection === 'pre' or trim($t) != '' ) ) { + if ( ' ' == substr( $t, 0, 1 ) and ( $this->mLastSection === 'pre' or trim($t) != '' ) ) { // pre if ($this->mLastSection !== 'pre') { $paragraphStack = false; _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs