Use htmlspecialchars() not htmlentities in xml export for validity
authorBrian Wolff <bawolff+wn@gmail.com>
Sun, 17 Feb 2019 11:23:50 +0000 (11:23 +0000)
committerBrian Wolff <bawolff+wn@gmail.com>
Sun, 17 Feb 2019 11:23:50 +0000 (11:23 +0000)
commita848eae6796d2b0824d0d606303286ae25003cd1
tree967d1e1fd64178f7a09764317f13fceae45ae3df
parent694fef93eaab44609c35598c1740a098c18c2320
Use htmlspecialchars() not htmlentities in xml export for validity

htmlentities() can output entity references that are invalid in XML.
Use htmlspecialchars() instead.

Additionally, cast user-id to int for phan-taint-check

Bug: T216348
Change-Id: Idf781f5a3ffc3c6463969b3f5af63f0f08ae837c
includes/export/WikiExporter.php