class ActionDispatch::FileHandler

def valid_path?(path)

def valid_path?(path)
  path.valid_encoding? && !path.include?("\0")
end