diff options
Diffstat (limited to 'app/controllers/config_gigaset_controller.rb')
-rw-r--r-- | app/controllers/config_gigaset_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/config_gigaset_controller.rb b/app/controllers/config_gigaset_controller.rb index 7a03860..e8581b0 100644 --- a/app/controllers/config_gigaset_controller.rb +++ b/app/controllers/config_gigaset_controller.rb @@ -450,7 +450,7 @@ class ConfigGigasetController < ApplicationController phone_book_ids << phone_book.id end - ln = params[:ln].to_s.encode!('UTF-8', 'UTF-8', :invalid => :replace).gsub(/[^0-9a-zA-Z-_]/,'') + '%' + ln = params[:ln].to_s.encode!('UTF-8', 'UTF-8', :invalid => :replace).gsub(/[^0-9a-zA-Z-_]/,'_') + '%' hm = params[:hm].to_s + '%' @phone_book_entries = PhoneBookEntry.where(:phone_book_id => phone_book_ids).where('last_name LIKE ?', ln).order(:last_name).order(:first_name).limit(MAX_DIRECTORY_ENTRIES) |