working command injection in fileupload, closes issue #23

This commit is contained in:
Ken Johnson
2013-07-09 16:36:03 -04:00
parent ea2014b637
commit ce6f32a1a2
4 changed files with 36 additions and 7 deletions
+8 -1
View File
@@ -16,7 +16,14 @@ class BenefitFormsController < ApplicationController
end
def upload
file = params[:benefits][:upload]
if file
flash[:success] = "File Successfully Uploaded!"
Benefits.save(file, params[:benefits][:backup])
else
flash[:error] = "Something went wrong"
end
redirect_to user_benefit_forms_path(:user_id => current_user.user_id)
end