]> Sergey Matveev's repositories - btrtrc.git/blobdiff - storage/safe-path.go
Drop support for go 1.20
[btrtrc.git] / storage / safe-path.go
index 89796ad68f2f93d37a11ce365ba36c74614ea5ce..9e50b7e3a13129610a7648188e4a746549d381d7 100644 (file)
@@ -2,7 +2,6 @@ package storage
 
 import (
        "errors"
-       "log"
        "path/filepath"
        "strings"
 )
@@ -21,7 +20,6 @@ func ToSafeFilePath(fileInfoComponents ...string) (string, error) {
        }
        safeFilePath := filepath.Join(safeComps...)
        fc := firstComponent(safeFilePath)
-       log.Printf("%q", fc)
        switch fc {
        case "..":
                return "", errors.New("escapes root dir")