  def edit_page

    # Saved contents of Login User
    begin
      @research = Research.where("user_id=#{@login_user.id}").first
    rescue
    end
    if @research.nil?
      @research = Research.new
    else
      # Already accepted?
      if !@research.status.nil? and @research.status != 0
        render(:action => 'show_receipt')
        return
      end
    end

    # Specifying page
    @page = '01'
    unless params[:page].blank?
      @page = params[:page]
      SqlHelper.validate_token([@page])
    end
  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.