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

    return unless request.post?

    tmpl_id = params[:thetisBoxSelKeeper].split(':').last
    tmpl_item = Item.find(tmpl_id)

    item = tmpl_item.copy(@login_user.id, @login_user.get_my_folder.id)
    if item.public != false
      item.update_attribute(:public, false)
    end

    redirect_to(:controller => 'items', :action => 'edit', :id => item.id)

  rescue => evar
    Log.add_error(request, evar)

    redirect_to(:controller => 'items', :action => 'new')
  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.