Fixes for r51774:
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 12 Jun 2009 09:17:21 +0000 (09:17 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 12 Jun 2009 09:17:21 +0000 (09:17 +0000)
commit8f79397a7cdd5cc4f7f91b43778a5eed5c51e4cb
tree870880dfc52dfdc023e25c0a539c4fef94ae43f5
parenta8d2157f36c2f9a82baf9ecbce0327c627a729b9
Fixes for r51774:
* declare $ip and $ipchain so that it doesn't throw notices and warnings
* don't set $ip to false after getting it from $_SERVER['REMOTE_ADDR'], otherwise it won't work when there's no XFF header
* fix logic when throwing the exception: throw it when there's no IP
includes/ProxyTools.php