Forum authority authentication problem with non-ascii characters
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6711
- Joined: Thu Dec 18, 2003 7:03 pm
Re: Forum authority authentication problem with non-ascii charac
I think it might be due to using the http header to return the user name.
Re: Forum authority authentication problem with non-ascii charac
It's actually the escaped version of the raw authenticated name. The URL escaped username is different. We have:
- Raw authenticated name: §tar§truck@forums
- Armagetron escaped authenticated name, which is used in stat files (won_matches.txt, ladderlog.txt, etc): %C2%A7tar%C2%A7truck@forums
- URL escaped name, which is used when communicating with the auth server: %C2%A7tar%C2%A7truck
- Raw: Name With Spaces@forums
- Armagetron escaped: Name\_With\_Spaces@forums
- URL escaped: Name%20With%20Spaces
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6711
- Joined: Thu Dec 18, 2003 7:03 pm
Re: Forum authority authentication problem with non-ascii charac
Does this difference make it an issue that needs fixing? The escaped name is used pretty much only in the logs. Can it even be fixed? The only thing I can thing to do is to do an iconv encoding back to latin1 from in the bit where it gets the user name out of the database and I can't imagine that helping.
Re: Forum authority authentication problem with non-ascii charac
Nah, no problems. If I understand dhl correctly embarrassingly telling me what my code is doing, the escaping seen here is done on the server, and for the purpose of logs, we should not change it. Only, perhaps, for the purpose of sending messages to the clients.
Re: Forum authority authentication problem with non-ascii charac
It wasn't meant to be condescending. My apologies if it read like that.
Re: Forum authority authentication problem with non-ascii charac
No worries, I really didn't remember everything the code does to the names.