News for hackers. Stuff that matters.
Re:Rack - Important Security Upgrade by SeoxyS on Friday February 08, 2013 @01:04PM (#5189187)
Counting .. seems like a terrible way to solve this. Why not do a prefix match between the root of the public folder and File.expand_path(requested_path)?
Re:Rack - Important Security Upgrade by tedunangst on Friday February 08, 2013 @04:48PM (#5190321)
I agree this seems really stupid. This is like 1998 era stuff. Put the path together, canonicalize it, then decide if you like it or not.