Index: trunk/phase3/includes/Parser.php |
— | — | @@ -4609,6 +4609,10 @@ |
4610 | 4610 | * for "replace", the whole page with the section replaced. |
4611 | 4611 | */ |
4612 | 4612 | private function extractSections( $text, $section, $mode, $newtext='' ) { |
| 4613 | + # I.... _hope_ this is right. |
| 4614 | + # Otherwise, sometimes we don't have things initialized properly. |
| 4615 | + $this->clearState(); |
| 4616 | + |
4613 | 4617 | # strip NOWIKI etc. to avoid confusion (true-parameter causes HTML |
4614 | 4618 | # comments to be stripped as well) |
4615 | 4619 | $stripState = new StripState; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -177,7 +177,10 @@ |
178 | 178 | Signature dates for Japanese and other languages including weekday now show |
179 | 179 | the correct day to match the rest of the time in local time. |
180 | 180 | * Escape the output of magic variables that return page name or part of it |
| 181 | +* (bug 10309) Initialise parser state properly in extractSections(), fixes |
| 182 | + some cases where section edits broke because tags were improperly stripped |
181 | 183 | |
| 184 | + |
182 | 185 | == API changes since 1.10 == |
183 | 186 | |
184 | 187 | (For ongoing development discussion, see http://www.mediawiki.org/wiki/API) |