API: Don't apply size limit to action=compare
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 8 Jan 2018 14:21:23 +0000 (09:21 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 8 Jan 2018 14:37:35 +0000 (09:37 -0500)
commit8ce53a86c633d8afb8c274b6745b88807f9a5197
tree0cd21622c23c3f502a2f2c0e517b1907d020854e
parentd1a1d04fc8438d9ab681539cef492a2295253a0e
API: Don't apply size limit to action=compare

Some diffs can be really huge. Since ApiComparePages is intended to
return only the diff and some small metadata, bypass $wgAPIMaxResultSize
to allow the diff to be returned even if it's insanely huge.

Really insanely huge diffs might still make PHP run out of memory, even
before it gets the chance to return the diff to the API. That is outside
the scope of this change.

Bug: T184412
Change-Id: I755417f573c3caf85031d03b262aa55bd8cf36d7
includes/api/ApiComparePages.php