r98301 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98300‎ | r98301 | r98302 >
Date:11:13, 28 September 2011
Author:reedy
Status:ok
Tags:
Comment:
Bug 31207 - wikimedia error while trying to preform a CU
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser_body.php
@@ -1041,7 +1041,7 @@
10421042 # XFF string, link to /xff search
10431043 if ( $set[1] ) {
10441044 # Flag our trusted proxies
1045 - list( $client, $trusted ) = efGetClientIPfromXFF( $set[1], $set[0] );
 1045+ list( $client, $trusted ) = CheckUserHooks::getClientIPfromXFF( $set[1], $set[0] );
10461046 $c = $trusted ? '#F0FFF0' : '#FFFFCC';
10471047 $s .= '&#160;&#160;&#160;<span style="background-color: ' . $c . '"><strong>XFF</strong>: ';
10481048 $s .= $this->sk->makeKnownLinkObj( $this->getTitle(),
@@ -1184,7 +1184,7 @@
11851185 # XFF
11861186 if ( $row->cuc_xff != null ) {
11871187 # Flag our trusted proxies
1188 - list( $client, $trusted ) = efGetClientIPfromXFF( $row->cuc_xff, $row->cuc_ip );
 1188+ list( $client, $trusted ) = CheckUserHooks::getClientIPfromXFF( $row->cuc_xff, $row->cuc_ip );
11891189 $c = $trusted ? '#F0FFF0' : '#FFFFCC';
11901190 $line .= '&#160;&#160;&#160;<span class="mw-checkuser-xff" style="background-color: ' . $c . '">' .
11911191 '<strong>XFF</strong>: ';

Follow-up revisions

RevisionCommit summaryAuthorDate
r98302MFT r98301reedy11:18, 28 September 2011
r98766REL1_18 MFT r98110, r98208, r98278, r98301reedy14:18, 3 October 2011

Status & tagging log