mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
Adjust the sanity check to path length 4
This commit is contained in:
@@ -468,7 +468,7 @@ func FindCWD() (string, error) {
|
||||
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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user