disable ipv6 cruft
authorDomas Mituzas <midom@users.mediawiki.org>
Thu, 19 Apr 2007 18:58:45 +0000 (18:58 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Thu, 19 Apr 2007 18:58:45 +0000 (18:58 +0000)
includes/SpecialContributions.php

index 8bd0a6d..16d4978 100644 (file)
@@ -72,11 +72,12 @@ class ContribsFinder {
                        $max = $this->dbr->selectField( 'user', 'max(user_id)', false, 'make_sql' );
                        $condition = 'rev_user >' . (int)($max - $max / 100);
                }
-               
+               /* WTF? -- disabling
                else if ( IP::isIPv6( $this->username ) ) {
                        # All stored IPs should be sanitized from now on, check for exact matches for reverse compatibility
                        $condition = '(rev_user_text=' . $this->dbr->addQuotes(IP::sanitizeIP($this->username)) . ' OR rev_user_text=' . $this->dbr->addQuotes($this->username) . ')';
                }
+               */
 
                if ( $condition == '' ) {
                        $condition = ' rev_user_text=' . $this->dbr->addQuotes( $this->username );