includes/functions_validate.php
  • FIND:

     NOTE --- Removing trailing whitespaces
    	$username = phpbb_clean_username($username);
    	
    	$sql = "SELECT username 
    		FROM " . USERS_TABLE . " 
    
  • REPLACE WITH:

    	$username = phpbb_clean_username($username);
    
    	$sql = "SELECT username 
    		FROM " . USERS_TABLE . "
    
  • FIND:

    		if ($row = $db->sql_fetchrow($result))
    
  • REPLACE WITH:

    		while ($row = $db->sql_fetchrow($result))
    
  • FIND:

    				if (preg_match("#\b(" . str_replace("\*", ".*?", phpbb_preg_quote($row['disallow_username'], '#')) . ")\b#i", $username))
    
  • REPLACE WITH:

    				if (preg_match("#\b(" . str_replace("\*", ".*?", preg_quote($row['disallow_username'], '#')) . ")\b#i", $username))
    
  • FIND:

    				if (preg_match("#\b(" . str_replace("\*", ".*?", phpbb_preg_quote($row['word'], '#')) . ")\b#i", $username))
    
  • REPLACE WITH:

    				if (preg_match("#\b(" . str_replace("\*", ".*?", preg_quote($row['word'], '#')) . ")\b#i", $username))