@ -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|