Protect against non-text output from StripState going into Title::newFromText()
authorChad Horohoe <chadh@wikimedia.org>
Fri, 10 Jul 2015 18:12:15 +0000 (11:12 -0700)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 10 Jul 2015 20:05:06 +0000 (20:05 +0000)
commitb8ced862bba14e25d3960638b9534c3c03b4c5ce
tree8a0b6939daf58ec69d001eb96b9bd75259eeec2c
parent49622354b4e539570655e07d3f3ee88f6664af0c
Protect against non-text output from StripState going into Title::newFromText()

Non-string input shouldn't be fed into newFromText(). We currently handle this
indirectly with relying on Title to do it. Instead just return earlier and not
try to construct a title from bad input.

Bug: T102321
Change-Id: I9bc96111378d9d4ed5981bffc6f150cbd0c1e331
includes/parser/Parser.php