mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Ruby 2.7: FrozenError when new LDAP users try to login (#35135).
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20966 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1cf427ee63
commit
137b41cf38
@ -247,7 +247,7 @@ class AuthSourceLdap < AuthSource
|
||||
def get_attr(entry, attr_name)
|
||||
if !attr_name.blank?
|
||||
value = entry[attr_name].is_a?(Array) ? entry[attr_name].first : entry[attr_name]
|
||||
value.to_s.force_encoding('UTF-8')
|
||||
(+value.to_s).force_encoding('UTF-8')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user