Avoid blowing up inside Parser::extensionSubstitution() when PP limits are exceeded
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 13 Oct 2016 16:53:31 +0000 (12:53 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 13 Oct 2016 17:06:47 +0000 (13:06 -0400)
commitd86056fee6d181d6d6355cb6b56e19104b06add2
treef93ebfdd65a5258a12b6c8a4f7c196a8952fbc78
parent84ffa5d1242fd28f9288a1be9199f64cb50cc920
Avoid blowing up inside Parser::extensionSubstitution() when PP limits are exceeded

The most critical one is if the marker name is bad, since that causes
StripState to throw an exception since I798d31af. But we may as well
check the other expand calls in this function too to avoid outputting
broken wikitext.

Bug: T136401
Change-Id: I1cb353d74f9a46168055e1abeb22cf569fe9354a
includes/parser/Parser.php