mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-07 21:25:21 -05:00
dont double sanitize theme folder paths
This commit is contained in:
@@ -34,11 +34,8 @@ module Jekyll
|
||||
private
|
||||
|
||||
def path_for(folder)
|
||||
resolved_dir = realpath_for(folder)
|
||||
return unless resolved_dir
|
||||
|
||||
path = Jekyll.sanitized_path(root, resolved_dir)
|
||||
path if File.directory?(path)
|
||||
path = realpath_for(folder)
|
||||
path if path && File.directory?(path)
|
||||
end
|
||||
|
||||
def realpath_for(folder)
|
||||
|
||||
Reference in New Issue
Block a user