Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2020-12-02 20:35:12 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2020-12-02 20:35:12 +0300
commit9ca289285132d8934b88490cc0f7c6acb3edeca0 (patch)
treed802045e44ffc8d33f4854ae87a48dd6c6a888cb /lib
parente59eff4caf0d932682d0e1794b0b2dbb9f3243c8 (diff)
parentb7cf0ea4b576a690d7549ab13d2766dd264bada7 (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.rb2
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