Allow symlinked folders in unsafe mode

This commit is contained in:
Alexander Ekdahl 2013-02-04 17:16:01 +01:00
parent e4042e56b7
commit 7512e6bb66
1 changed files with 2 additions and 2 deletions

View File

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