API: Work around wfMangleFlashPolicy()
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 7 Aug 2014 19:10:16 +0000 (20:10 +0100)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 20 Nov 2014 15:03:31 +0000 (10:03 -0500)
commite868f703ad4afbdcf81e7e392a46f20e356c4331
tree0e1947d3809e75dd0f057a6a4dc4315c99790c44
parent7878e3896b5d5976254f4d580ad41e1adcf5a844
API: Work around wfMangleFlashPolicy()

The things wfMangleFlashPolicy() does to the output break things in the
API. For JSON we can work around it, while for PHP we just have to error
out. XML isn't affected because <> are escaped anyway (unless something
somehow uses 'cross-domain-policy' as a tag name), and the rest are
going away soon so they're not worth the trouble.

Bug: 66776
Change-Id: Idc5f37bd778288a9cde572f081dc753d681ec354
RELEASE-NOTES-1.25
includes/api/ApiFormatJson.php
includes/api/ApiFormatPhp.php