
find_with_case doesn't work with international characters
Reported by Jens Norrgrann | July 1st, 2009 @ 01:20 AM
If a user has a login with international characters like "ÅÄÖ" the find_with_case doesn't downcase it properly.
Fix by changing line 121 in login.rb from:
first(:conditions => ["LOWER(#{quoted_table_name}.#{field}) = ?", value.downcase])
to:
first(:conditions => ["LOWER(#{quoted_table_name}.#{field}) = ?", value.mb_chars.downcase])
Comments and changes to this ticket
-
Ben Johnson July 2nd, 2009 @ 01:52 AM
- State changed from new to resolved
Thanks, this has been applied.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.