Prevent symbolic links from themes

This commit is contained in:
Bjørn Erik Pedersen
2018-09-23 17:00:33 +02:00
parent cae07ce84b
commit f916814697
3 changed files with 46 additions and 0 deletions

View File

@@ -718,6 +718,7 @@ func createThemesOverlayFs(p *paths.Paths) (afero.Fs, []string, error) {
}
fs, err := createOverlayFs(p.Fs.Source, absPaths)
fs = hugofs.NewNoLstatFs(fs)
return fs, absPaths, err