Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Special characters in username
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:
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.
Do you have any idea how to fix this?
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?
Tagged:
1
Comments
As I am German I know that problem with äöü... and there is for example ä for ä
Are there any effects of your hack?
I had the same problem with french characters and I patched it the same way. Everything is working fine now