Allow symlinked folders in unsafe mode
This commit is contained in:
parent
e4042e56b7
commit
7512e6bb66
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue