Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 10

CurtisOdenericgillettex00 +7 guests

Special characters in username

This discussion is related to the Vanilla Proxyconnect addon.
Hi guys.
I got proxyconnect up and running, however I ran into the problem with special characters.
In my users db, I have allowed the danish characters ('æøå') in usernames as these are very common here. However, when proxyconnect auto-connects and creates a user in the GDN_user table, it strips these (and other) characters away.

I found this in the proxyauthenticator class:
$UserName = trim(preg_replace('/[^a-z0-9- ]+/i','',$UserName));
It seems that everything that is not latin characters, numbers and dash and space is stripped away.
I tried to hack in my 'æøå', but to no avail.
$UserName = trim(preg_replace('/[^a-z0-9- æøå]+/i','',$UserName));

Do you have any idea how to fix this?

Comments

  • nobody? (bumb)
  • Posts: 98
    Your hack should work - I guess the regEx is correct - may you need some special code to make that letters readable for php.
    As I am German I know that problem with äöü... and there is for example ä for ä

    Are there any effects of your hack?
  • Hi

    I had the same problem with french characters and I patched it the same way. Everything is working fine now :)
Sign In or Register to comment.