module Sprockets::Server
def forbidden_request?(env)
def forbidden_request?(env) # Prevent access to files elsewhere on the file system # # http://example.org/assets/../../../etc/passwd # env["PATH_INFO"].include?("..") end
def forbidden_request?(env) # Prevent access to files elsewhere on the file system # # http://example.org/assets/../../../etc/passwd # env["PATH_INFO"].include?("..") end