http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100247

Revision: 100247
Author:   aaron
Date:     2011-10-19 17:57:17 +0000 (Wed, 19 Oct 2011)
Log Message:
-----------
commit live blocklist hack

Modified Paths:
--------------
    branches/wmf/1.17wmf1/includes/specials/SpecialIpblocklist.php

Modified: branches/wmf/1.17wmf1/includes/specials/SpecialIpblocklist.php
===================================================================
--- branches/wmf/1.17wmf1/includes/specials/SpecialIpblocklist.php      
2011-10-19 17:51:49 UTC (rev 100246)
+++ branches/wmf/1.17wmf1/includes/specials/SpecialIpblocklist.php      
2011-10-19 17:57:17 UTC (rev 100247)
@@ -450,6 +450,13 @@
                # Prepare links to the blocker's user and talk pages
                $blocker_id = $block->getBy();
                $blocker_name = $block->getByName();
+
+               # WMF patch as above
+               if ( IP::isIPAddress( $blocker_name ) ) {
+                       $blocker_name = '(steward)';
+               }
+               # End patch
+
                $blocker = $sk->userLink( $blocker_id, $blocker_name );
                $blocker .= $sk->userToolLinks( $blocker_id, $blocker_name );
 
@@ -548,6 +555,12 @@
                # The last few lines of Title::secureAndSplit() tell the story.
                foreach ( $this->mResult as $row ) {
                        $name = str_replace( ' ', '_', $row->ipb_by_text );
+                       # WMF patch for privacy leak in 1.18 CentralAuth -- TS 
2011-09-29
+                       if ( IP::isIPAddress( $name ) ) {
+                               $name = '(steward)';
+                       }
+                       # End patch
+
                        $lb->add( NS_USER, $name );
                        $lb->add( NS_USER_TALK, $name );
                        $name = str_replace( ' ', '_', $row->ipb_address );


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to