diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2020-12-02 20:35:12 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2020-12-02 20:35:12 +0300 |
commit | 9ca289285132d8934b88490cc0f7c6acb3edeca0 (patch) | |
tree | d802045e44ffc8d33f4854ae87a48dd6c6a888cb /lib | |
parent | e59eff4caf0d932682d0e1794b0b2dbb9f3243c8 (diff) | |
parent | b7cf0ea4b576a690d7549ab13d2766dd264bada7 (diff) |
Merge branch 'fix_symlink_converter_scope' into 'master'
Limit symlink converter scope
See merge request gitlab-org/gitlab-docs!1372
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/symlinks_converter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/symlinks_converter.rb b/lib/gitlab/symlinks_converter.rb index 9ba764ad..a7cea940 100644 --- a/lib/gitlab/symlinks_converter.rb +++ b/lib/gitlab/symlinks_converter.rb @@ -17,6 +17,8 @@ module Gitlab items.each do |item| id = item.identifier + next unless id.to_s.start_with?('/ee/') + if EXTENTIONS.include?(id.ext) file_path = File.join(config.fetch(:content_dir), id.to_s) real_path = Pathname.new(file_path).realpath.to_s |