From: Domas Mituzas Date: Thu, 19 Apr 2007 18:58:45 +0000 (+0000) Subject: disable ipv6 cruft X-Git-Tag: 1.31.0-rc.0~53349 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=d4336c8b646de0c9caa78e98a52d72c7d5b6795d;p=lhc%2Fweb%2Fwiklou.git disable ipv6 cruft --- diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 8bd0a6d112..16d497843b 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -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 );