From: Antoine Musso Date: Fri, 13 Apr 2007 08:58:59 +0000 (+0000) Subject: Fix r21220: I forgot a column in the regular expression. X-Git-Tag: 1.31.0-rc.0~53404 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=97be8bb5677b81a484561830fd47923636500a92;p=lhc%2Fweb%2Fwiklou.git Fix r21220: I forgot a column in the regular expression. Bug pointed out by Nick Jenkins. --- diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 2776acf1ec..248e23aee8 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -76,7 +76,7 @@ class ContribsFinder { if( $matches[1] == 24 ) $ipmask = $abcd[0] . '.' . $abcd[1] . '.' . $abcd[2] . '.%'; else $ipmask=$abcd[0] . '.' . $abcd[1] . '.%'; $condition = 'rev_user_text LIKE ' . $this->dbr->addQuotes($ipmask); - } else if ( IP::isIPv6( $this->username ) && preg_match("/^(?64|80|96|112)$/", $this->username) ) { + } else if ( IP::isIPv6( $this->username ) && preg_match("/^(?:64|80|96|112)$/", $this->username) ) { $abcdefgh = explode( ":", IP::sanitizeIP($this->username) ); $abcd = implode( ":", array_slice($abcdefgh, 0, 4) ); switch( $matches[1] ) {