(bug 26585) Detect CSV/array values in $_SERVER['REMOTE_ADDR'].
authorTyler Anthony Romeo <tylerromeo@gmail.com>
Wed, 22 Aug 2012 20:38:25 +0000 (16:38 -0400)
committerTyler Anthony Romeo <tylerromeo@gmail.com>
Tue, 23 Oct 2012 21:14:33 +0000 (17:14 -0400)
commitc4ed43cf6bcb82318fc6252a847e89f5d6e507fe
treeb0e612cf14ca19ae9af86119c25b343cbcaeb992
parent57428ffa2e157e28fbb8d0dd1e8cb71bc27ade2a
(bug 26585) Detect CSV/array values in $_SERVER['REMOTE_ADDR'].

Changed WebRequest::getRawIP to check for values of
$_SERVER['REMOTE_ADDR'] that are either an array
or a comma separated list of IP addresses, and throw
an exception.

Original patch by Ilmari Karonen. Adapted from original
patch to work with newer MediaWiki version.

Change-Id: I4b3c56adf46b336c5032db3f2a1e621c873f0d83
includes/WebRequest.php