clean_username, 2 users with different case are equal?

Converting from other board software? Good decision! Need help? Have a question about a convertor? Wish to offer a convertor package? Post here.
Scam Warning
edrimon
Registered User
Posts: 49
Joined: Tue Jul 15, 2014 12:20 pm

clean_username, 2 users with different case are equal?

Post by edrimon »

Hi

I am trying to convert phpbb2 to phpbb3 and I get stuck to an error related to Colliding usernames.
The strange part is that two different users that have usernames with different case, like "κωστας" and "ΚΩΣΤΑΣ", according to phpbb3, should be merged to one, with the "clean" username produced as: ĸωστaσ

As you can see, the "clean" username is a mix of greek and latin characters (ω is greek, but a is not), making it inconvenient and actually impossible to convert.

Can someone help please? I would just like "κωστας" and "ΚΩΣΤΑΣ" to be treated as clean and unique usernames and actually they are, 'K' is a different character than 'κ'. So I do not get why the "clean" username suggested by phpbb3 should be a hybrid between greek and latin chars !
edrimon
Registered User
Posts: 49
Joined: Tue Jul 15, 2014 12:20 pm

Re: clean_username, 2 users with different case are equal?

Post by edrimon »

I found the answer myself. I am posting in case it is useful for somebody.

The problem was that function utf8_clean_string
https://wiki.phpbb.com/Function.utf8_clean_string

is working very badly. It is converting a username into a mix of greek and latin characters and the output is not acceptable, as one had to switch over languages just to enter his/her username.

I bypassed that function by modifying includes/utf/utf_tools.php and worked as wanted!

Return to “[3.0.x] Convertors”