diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb index 2deae484..22e08fd1 100644 --- a/lib/jekyll/site.rb +++ b/lib/jekyll/site.rb @@ -253,7 +253,7 @@ module Jekyll end # Private: creates a regular expression from the keep_files array - # + # # Examples # ['.git','.svn'] creates the following regex: /\/(\.git|\/.svn)/ # @@ -338,7 +338,7 @@ module Jekyll ['.', '_', '#'].include?(e[0..0]) || e[-1..-1] == '~' || self.exclude.glob_include?(e) || - File.symlink?(e) + (File.symlink?(e) & self.safe) end end end