瀏覽代碼

Removed directory handler debug log

Toby Chui 3 年之前
父節點
當前提交
f843087a3d
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/mod/user/directoryHandler.go

+ 0 - 2
src/mod/user/directoryHandler.go

@@ -2,7 +2,6 @@ package user
 
 
 import (
 import (
 	"errors"
 	"errors"
-	"log"
 	"os"
 	"os"
 	"path/filepath"
 	"path/filepath"
 	"strings"
 	"strings"
@@ -88,7 +87,6 @@ func (u *User) VirtualPathToRealPath(vpath string) (string, error) {
 	}
 	}
 
 
 	if strings.Contains(filepath.Clean(subpath), "..") {
 	if strings.Contains(filepath.Clean(subpath), "..") {
-		log.Println(filepath.Clean(subpath))
 		return "", errors.New("Request path out of storage root")
 		return "", errors.New("Request path out of storage root")
 	}
 	}