Fix OutputPage::parseInternal() by stripping <div> wrapper
authorC. Scott Ananian <cscott@cscott.net>
Fri, 26 Oct 2018 14:05:34 +0000 (10:05 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Fri, 26 Oct 2018 15:20:26 +0000 (11:20 -0400)
commitdb4fa6fb9ffc4601e7a02b6c30f22962db63615c
tree109b4bdd2d7a5cbd00ae82ab27c190a0cdff486f
parente09941986899d87a5eac79ef5c738c093774abf6
Fix OutputPage::parseInternal() by stripping <div> wrapper

We should probably strip the <div> wrapper in OutputPage::parse() as
well: this behavior was added in 1.30, but it only applies when
$interface is false.  However, that requires a more careful audit
(a lot more places call parse() than parseInline()) and so I'll defer
that for now.

Change-Id: Iad5412f03af29c04deb653969dd71f6c86f0ae50
includes/OutputPage.php
tests/phpunit/includes/OutputPageTest.php