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

    return unless request.post?

    title = params[:title]

    titles = User.get_config_titles
    unless titles.nil?
      titles.delete(title)
      User.save_config_titles titles
    end

    User.update_xorder(title, User::XORDER_MAX)
    idx = 0
    unless titles.nil?
      titles.each do |title|
        User.update_xorder(title, idx)
        idx += 1
      end
    end

    render(:partial => 'ajax_title', :layout => false)
  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.