Apply $wgMaxArticleSize more exactly
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 27 Jun 2016 15:34:28 +0000 (11:34 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 27 Jun 2016 15:45:13 +0000 (11:45 -0400)
commitb6fce440b719882adc46a6f29f245d70e2a67e6f
tree32886364b191bb7513d3f1597527fb1c7093e5e2
parent212e40dae4028b7456aa285d797943ec5f0e5285
Apply $wgMaxArticleSize more exactly

$wgMaxArticleSize is defined as "maximum article size in kilobytes",
however the way it was being used in WikiImporter and EditPage was
actually allowing 1023 bytes more than the limit. Other code using the
variable was limiting it to the specified value.

Change-Id: I85e4d2146643c5ac65f27cf464a51b28d68440b0
includes/EditPage.php
includes/import/WikiImporter.php