r21388 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21387‎ | r21388 | r21389 >
Date:18:58, 19 April 2007
Author:midom
Status:old
Tags:
Comment:
disable ipv6 cruft
Modified paths:
  • /trunk/phase3/includes/SpecialContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialContributions.php
@@ -72,11 +72,12 @@
7373 $max = $this->dbr->selectField( 'user', 'max(user_id)', false, 'make_sql' );
7474 $condition = 'rev_user >' . (int)($max - $max / 100);
7575 }
76 -
 76+ /* WTF? -- disabling
7777 else if ( IP::isIPv6( $this->username ) ) {
7878 # All stored IPs should be sanitized from now on, check for exact matches for reverse compatibility
7979 $condition = '(rev_user_text=' . $this->dbr->addQuotes(IP::sanitizeIP($this->username)) . ' OR rev_user_text=' . $this->dbr->addQuotes($this->username) . ')';
8080 }
 81+ */
8182
8283 if ( $condition == '' ) {
8384 $condition = ' rev_user_text=' . $this->dbr->addQuotes( $this->username );