aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/hugo_sites_build_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-07-25 00:12:40 +0200
committerBjørn Erik Pedersen <[email protected]>2019-07-25 11:27:25 +0200
commite5f229974166402f51e4ee0695ffb4d1e09fa174 (patch)
tree44dc7adc4fd02cb563583afaff6ddaa781821e2f /hugolib/hugo_sites_build_test.go
parent87a07282a2f01779e098cde0aaee1bae34dc32e6 (diff)
downloadhugo-e5f229974166402f51e4ee0695ffb4d1e09fa174.tar.gz
hugo-e5f229974166402f51e4ee0695ffb4d1e09fa174.zip
Block symlink dir traversal for /static
This is in line with how it behaved before, but it was lifted a little for the project mount for Hugo Modules, but that could create hard-to-detect loops.
Diffstat (limited to 'hugolib/hugo_sites_build_test.go')
-rw-r--r--hugolib/hugo_sites_build_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/hugolib/hugo_sites_build_test.go b/hugolib/hugo_sites_build_test.go
index 6ff8ae4d2..876f21cfa 100644
--- a/hugolib/hugo_sites_build_test.go
+++ b/hugolib/hugo_sites_build_test.go
@@ -2,7 +2,6 @@ package hugolib
import (
"fmt"
- "os"
"strings"
"testing"
@@ -1282,7 +1281,7 @@ func readFileFromFs(t testing.TB, fs afero.Fs, filename string) string {
root = helpers.FilePathSeparator + root
}
- helpers.PrintFs(fs, root, os.Stdout)
+ //helpers.PrintFs(fs, root, os.Stdout)
t.Fatalf("Failed to read file: %s", err)
}
return string(b)