maintenance: Add missing limit parameters to some explode()
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Thu, 28 Feb 2019 08:55:50 +0000 (09:55 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 1 Mar 2019 17:17:40 +0000 (17:17 +0000)
commit007bfbf83578df5010415d5822c6aec057ffaa88
treee5f9cbdf3cf0571a6d34eacc0d4bfd00f7004a2c
parent9b4461c1b8027049d575bc66b45a1545bd506188
maintenance: Add missing limit parameters to some explode()

This is, in theory, a loophole that can not only cause such code to
consume suprising amounts of memory and runtime. It can also create
suprising results. For example, an input like

 -param="might contain a = char"

might result in a cut-off value.

Not so much of a problem in a maintenance script. But still good
practice, I find.

Change-Id: I14fb278e6fdb61d0c486ca7e23229851ea479408
maintenance/Maintenance.php
maintenance/includes/BackupDumper.php
maintenance/purgeChangedFiles.php
maintenance/purgeChangedPages.php
maintenance/updateRestrictions.php