API: Also mangle indexed tag names in format=xml
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 30 Apr 2015 13:00:04 +0000 (09:00 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 30 Apr 2015 13:02:17 +0000 (09:02 -0400)
commit4bbd86a859392c390755e8b2ce55f31fdc1f97ae
tree1988bf403a6dfbbc6ab06704b42f1b90838df59a
parent5d62627a21e7203539cf0aa2e2ce8a872162eef9
API: Also mangle indexed tag names in format=xml

I had thought no one would be silly enough to set invalid tag names for
ApiResult::setIndexedTagName(), since it's specifically *for* XML tag
names. Apparently I was wrong.

Bug: T97599
Change-Id: I62ad832b1d8c23a275e5c67160f0b1febe5f3454
includes/api/ApiFormatXml.php
tests/phpunit/includes/api/format/ApiFormatXmlTest.php