lib/rack/directory.rb in rack-2.1.3 vs lib/rack/directory.rb in rack-2.1.4

- old
+ new

@@ -110,9 +110,10 @@ url_head = (script_name.split('/') + path_info.split('/')).map do |part| Rack::Utils.escape_path part end Dir.entries(path).reject { |e| e.start_with?('.') }.sort.each do |node| + node = ::File.join path, node stat = stat(node) next unless stat basename = ::File.basename(node) ext = ::File.extname(node)