Support » Plugins » Hacks » WP-PhpBB Bridge: special characters in username

  • Hi, I’m an italian user.

    I saw that nickname was protected by an ereg_replace.
    If I use a simply htmlspecialchars I must deactive the plugin before and the re-active it? I had worked only on MyBB and with wordpress I’m a little bit scared 🙂
    This is the site:

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I did it, but it is not changed.
    The username in PhpBB for example is: [ex]hello ; [ex]hello1 and in WP is: exhello and exhello1
    The same happens to uppercase, changed in lowercase, for example: [ex]Luca in exluca

    This is the part of code that I modifyed:

    function wpb_get_username($count = 0)
    	global $user;
    	$new_username = htmlspacialchars($user->data['username']);
    	if($count > 0)
    		$new_username .= (string)$count;
    		$new_username = wpb_get_username($count);
    	return $new_username;

    Maybe I must modify formatting.php, the sanitize_user function? Which are the risks if I’m going to insert a simply htmlspecialchars?

    Up please


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP-PhpBB Bridge: special characters in username’ is closed to new replies.