Fix copy-paste error in wfIsConfiguredProxy()
authorKevin Israel <pleasestand@live.com>
Fri, 20 Jun 2014 05:25:41 +0000 (01:25 -0400)
committerKevin Israel <pleasestand@live.com>
Fri, 20 Jun 2014 05:27:33 +0000 (01:27 -0400)
It should call IP::isConfiguredProxy(), not IP::isTrustedProxy().

Follows-up e323bc33934d.

Change-Id: I3caf8261f6058aa1a243c055b746b2fa61b1bf49

includes/GlobalFunctions.php

index c95c380..49d07b6 100644 (file)
@@ -4221,5 +4221,5 @@ function wfIsTrustedProxy( $ip ) {
  * @since 1.23 Supports CIDR ranges in $wgSquidServersNoPurge
  */
 function wfIsConfiguredProxy( $ip ) {
-       return IP::isTrustedProxy( $ip );
+       return IP::isConfiguredProxy( $ip );
 }