#133 ✓resolved
Jens Norrgrann

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])


first(:conditions => ["LOWER(#{quoted_table_name}.#{field}) = ?", value.mb_chars.downcase])

Comments and changes to this ticket

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.

New-ticket Create new ticket

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.

People watching this ticket