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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -