Skip to content

Instantly share code, notes, and snippets.

@timurb
Created September 13, 2010 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timurb/577372 to your computer and use it in GitHub Desktop.
Save timurb/577372 to your computer and use it in GitHub Desktop.
--- auth_source_ldap.rb.orig 2010-09-13 14:31:38.000000000 +0000
+++ auth_source_ldap.rb 2010-09-13 14:24:02.000000000 +0000
@@ -124,7 +124,7 @@
def self.get_attr(entry, attr_name)
if !attr_name.blank?
- entry[attr_name].is_a?(Array) ? entry[attr_name].first : entry[attr_name]
+ ( entry[attr_name].is_a?(Array) ? entry[attr_name].first : entry[attr_name] ).force_encoding('UTF-8')
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment