shithub: hugo

Download patch

ref: 15b66935419089ce465f5d4d6ac159a7aaa76cb4
parent: 94d998989d85c0d4f8119d49ba6247367b5f1cd7
author: Bjørn Erik Pedersen <[email protected]>
date: Sat Jul 30 16:07:35 EDT 2016

Adjust the sanity check to path length 4

--- a/helpers/path.go
+++ b/helpers/path.go
@@ -468,7 +468,7 @@
 func SymbolicWalk(fs afero.Fs, root string, walker filepath.WalkFunc) error {
 
 	// Sanity check
-	if len(root) < 5 {
+	if len(root) < 4 {
 		return fmt.Errorf("Path to short, cannot walk the root: %s", root)
 	}