Browse Source

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
tags/5.0.0
Go MAEDA 3 years ago
parent
commit
137b41cf38
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/models/auth_source_ldap.rb

+ 1
- 1
app/models/auth_source_ldap.rb View File

@@ -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…
Cancel
Save