From 3e145bed0ad8fad6fd902fb342ed8fe81f1b898a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakov=20=C4=8Curi=C4=87?= Date: Tue, 17 May 2016 15:42:44 +0200 Subject: [PATCH] Handle UTF8 cn --- lib/RT/Authen/ExternalAuth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RT/Authen/ExternalAuth.pm b/lib/RT/Authen/ExternalAuth.pm index d4dc8dd..1c176bd 100644 --- a/lib/RT/Authen/ExternalAuth.pm +++ b/lib/RT/Authen/ExternalAuth.pm @@ -562,7 +562,7 @@ sub DoAuth { if ( @{ RT->Config->Get('ExternalInfoPriority') } ) { # Note that UpdateUserInfo does not care how we authenticated the user # It will look up user info from whatever is specified in $RT::ExternalInfoPriority - ($info_updated,$info_updated_msg) = RT::Authen::ExternalAuth::UpdateUserInfo($session->{'CurrentUser'}->Name); + ($info_updated,$info_updated_msg) = RT::Authen::ExternalAuth::UpdateUserInfo(utf8::decode($session->{'CurrentUser'}->Name)); } # Now that we definitely have up-to-date user information,