fixes #1028
This commit is contained in:
@@ -22,7 +22,7 @@ class ForumPost < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def creator_name(name)
|
||||
where("forum_posts.creator_id = (select _.id from users _ where lower(_.name) = ?)", name.downcase)
|
||||
where("forum_posts.creator_id = (select _.id from users _ where lower(_.name) = ?)", name.mb_chars.downcase)
|
||||
end
|
||||
|
||||
def active
|
||||
@@ -50,7 +50,7 @@ class ForumPost < ActiveRecord::Base
|
||||
end
|
||||
|
||||
if params[:creator_name].present?
|
||||
q = q.creator_name(params[:creator_name])
|
||||
q = q.creator_name(params[:creator_name].tr(" ", "_"))
|
||||
end
|
||||
|
||||
q
|
||||
|
||||
Reference in New Issue
Block a user