r98302 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98301‎ | r98302 | r98303 >
Date:11:18, 28 September 2011
Author:reedy
Status:ok
Tags:
Comment:
MFT r98301
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/CheckUser/CheckUser_body.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/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>: ';

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r98301Bug 31207 - wikimedia error while trying to preform a CUreedy11:13, 28 September 2011

Status & tagging log