We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2b187c commit 52870c0Copy full SHA for 52870c0
lib/jekyll-multisite.rb
@@ -46,7 +46,7 @@ def sanitized_path(base_directory, questionable_path)
46
class Cleaner
47
def parent_dirs(file)
48
parent_dir = File.dirname(file)
49
- if parent_dir == '/'
+ if parent_dir == '/' or File.dirname(parent_dir) == parent_dir or !parent_dir.start_with?(site.dest)
50
[]
51
elsif parent_dir == site.dest
52
0 commit comments