dont double sanitize theme folder paths

This commit is contained in:
Ben Balter 2016-07-28 14:46:05 -04:00
parent 26f1ea2487
commit 2351ef6bbe
1 changed files with 2 additions and 5 deletions

View File

@ -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)