  def destroy
    Log.add_info(request, params.inspect)

    return unless request.post?

    if params[:check_xlog].nil?
      list
      render(:action => 'list')
      return
    end

    count = 0
    SqlHelper.validate_token([params[:check_xlog].keys])
    params[:check_xlog].each do |key, value|
      if value == '1'
        ZeptairXlog.delete(key)
        count += 1
      end
    end

    list
    flash[:notice] = count.to_s + t('log.deleted')
    render(:action => 'list')
  end
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.