ruby on rails - Brakeman: model attribute used in file name warnings -


i'm setting file name 'abc_1.pdf' '1' value of model's attribute. brakeman scanner take security issue. need keep track of files referencing file name model attribute. can please tell me, right way fix security issue?

thanks.

i don't know brakeman gem can use bijective transformation append referencing model attributes filename brakeman not worry about.

or can generate kind of unique hashkey model attribute stored somewhere (else) along model attribute can later model attribute presenting hashkey.


Comments

Popular posts from this blog

css - Text drops down with smaller window -

php - Boolean search on database with 5 million rows, very slow -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -