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

    return unless request.post?

    header_menus = params[:header_menus_order]

    yaml = ApplicationHelper.get_config_yaml

    unless yaml[:general]['header_menus'].nil?
      yaml[:general]['header_menus'].sort! { |h_menu_a, h_menu_b|
        idx_a = header_menus.index h_menu_a[0]
        idx_a = 100 if idx_a.nil?
        idx_b = header_menus.index h_menu_b[0]
        idx_b = 101 if idx_b.nil?

        idx_a - idx_b
      }

      ApplicationHelper.save_config_yaml(yaml)
    end

    render(:text => '')
  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.