mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-29 08:48:01 -05:00
Rename EntryFilter#bad_symlink? to EntryFilter#symlink_outside_site_source?
This commit is contained in:
@@ -52,10 +52,10 @@ module Jekyll
|
||||
end
|
||||
|
||||
def symlink?(entry)
|
||||
site.safe && File.symlink?(entry) && bad_symlink?(entry)
|
||||
site.safe && File.symlink?(entry) && symlink_outside_site_source?(entry)
|
||||
end
|
||||
|
||||
def bad_symlink?(entry)
|
||||
def symlink_outside_site_source?(entry)
|
||||
! File.realpath(entry).start_with?(File.realpath(@site.source))
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user