Only allow CWD _layouts outside of safe mode.

This commit is contained in:
Parker Moore 2014-10-21 09:00:41 -07:00
parent 0c6137b2d3
commit ca40c771d0
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ module Jekyll
def layout_directory_in_cwd def layout_directory_in_cwd
dir = Jekyll.sanitized_path(Dir.pwd, site.config['layouts']) dir = Jekyll.sanitized_path(Dir.pwd, site.config['layouts'])
if File.directory?(dir) if File.directory?(dir) && !site.safe
dir dir
else else
nil nil