Fix IP handling in DerivativeRequest
authorGergő Tisza <tgr.huwiki@gmail.com>
Tue, 30 Oct 2018 05:32:13 +0000 (22:32 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Thu, 1 Nov 2018 03:34:58 +0000 (20:34 -0700)
commit3331e9d26ca05b9cf5b17b5addb903e72a694785
treebd6145f2534e174892348b52633acfb81ae53afd
parentc6ad2554f40f8ebbe9e38ac64ea933076f348729
Fix IP handling in DerivativeRequest

$r->getIP() should return what was set by $r->setIP(); currently
that breaks for DerivativeRequest as get reads from the base but
set writes on the derivative.

Change-Id: If30c233931ceb1ca05da8866da3c3ab78de1a339
includes/DerivativeRequest.php
tests/phpunit/includes/DerivativeRequestTest.php [new file with mode: 0644]