diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 884e32a8..92173fc3 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -396,7 +396,7 @@ class ManagementsController < ApplicationController # ๆœ็ดข้•œๅƒ def mirror_search @scope = [] - if params[:q] && params[:q].lstrip.rstrip != "" + if params[:q] && params[:q].strip != "" @scope = MirrorRepository.where("name like ?", "%#{params[:q]}%").map(&:name) end respond_to do |format|