Bug 10019: Fix for userid containing UTF8 chars
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 10 Apr 2013 08:13:52 +0000 (10:13 +0200)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 20 Apr 2013 03:13:45 +0000 (23:13 -0400)
commit678884ba389251849c69a40435a15f43f1bbb277
tree464fd64928976aa4a2c571853f293a99c584312d
parentc509ea3f18e71d230b634ba88291f3b32f446345
Bug 10019: Fix for userid containing UTF8 chars

Decodes userid on two places in checkauth of C4/Auth.pm

Test plan:
Include some non-Latin characters in your userid (loginname). Arab, Chinese?
Login into opac and check user page.
Go to staff (no new login), check your login name at various places.
Logout, login via staff.
Do the same.
Go to opac again (no new login), check user page.
Optionally: Remove all your sessions from table. Do a login. Check sessions.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Works as described. No errors.
This patch fixes this problem, but I wonder if
there is a general solution that handle all as utf8.
Tested in opac and staff.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit 7e90e1524f7e586dac0f98241ace430e5cbeac7f)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/Auth.pm