API: Don't allow '#' in title-parts
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 20 Feb 2015 15:18:00 +0000 (10:18 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 20 Feb 2015 15:18:00 +0000 (10:18 -0500)
commitacc8160705beee69c4fc4f7d16ebfc8d586bc135
tree747fa1e84e8c5a9184de9f59b45c880ed88e1390
parent265a4cc2c94ec67d812d5d3f6b5fb99dbabe7195
API: Don't allow '#' in title-parts

As-is, this causes loss of a character from the passed-in title leading
to wrong output. But there should never be a '#' in a title-part anyway,
the best thing is to just disallow it completely.

Bug: T38358
Change-Id: Id90bfb9c63a5960e7d2d49350d3e0da0327d0e24
includes/api/ApiQueryBase.php