Commit e9ba6672 authored by zzjin's avatar zzjin

Update tree_helper.rb to fix #31784, which broken file browse where paths deeper than 6:'/'.

parent 9ada13d3
......@@ -81,7 +81,7 @@ module TreeHelper
part_path = ""
parts = @path.split('/')
yield('..', nil) if parts.count > max_links
yield('..', parts) if parts.count > max_links
parts.each do |part|
part_path = File.join(part_path, part) unless part_path.empty?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment