mirror of
https://github.com/redmine/redmine.git
synced 2026-04-03 02:59:33 +02:00
Merged r15024 and r15025 (#21453).
git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@15075 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -197,7 +197,8 @@ class AuthSourceLdap < AuthSource
|
||||
|
||||
def self.get_attr(entry, attr_name)
|
||||
if !attr_name.blank?
|
||||
entry[attr_name].is_a?(Array) ? entry[attr_name].first : entry[attr_name]
|
||||
value = entry[attr_name].is_a?(Array) ? entry[attr_name].first : entry[attr_name]
|
||||
value.to_s.force_encoding('UTF-8')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user