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