Use IPSet for checking of wgProxyList
authorFlorian Schmidt <florian.schmidt.stargatewissen@gmail.com>
Sat, 15 Apr 2017 23:52:23 +0000 (01:52 +0200)
committerKrinkle <krinklemail@gmail.com>
Mon, 1 May 2017 22:15:03 +0000 (22:15 +0000)
commitc9649314f710f722be2070f6f1bcae10189ba8f6
tree9ace1d708c2707f2d26b456f55e981895eaa7fc6
parent3fa53899cb11989fb4d056c6d039533d6a5f1add
Use IPSet for checking of wgProxyList

Instead of using array_* functions, use the IPSet for checking, if a
specific IP address matches a set of addresses.

This also deprecates a backward-compatibility functionality, that
the wgProxyList array could also be an associative array, where the blocked
IP address is set as a key of the array insted of a value. All IP address
keys will be mved to values on-the-fly, however a deprecation warning will
be emitted. A notice in the Release notes was added, too.

Bug: T161580
Change-Id: I69d9534942c415ab044177969ecd54160079b593
RELEASE-NOTES-1.30
includes/DefaultSettings.php
includes/user/User.php
tests/phpunit/includes/user/UserTest.php