Bug pointed out by Nick Jenkins.
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] ) {