Sfoglia il codice sorgente

Added debug test in rtv translator

TC pushbot 5 4 anni fa
parent
commit
0198947969
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      mod/user/directoryHandler.go

+ 2 - 0
mod/user/directoryHandler.go

@@ -2,6 +2,7 @@ package user
 
 import (
 	"errors"
+	"log"
 	"os"
 	"path/filepath"
 	"strings"
@@ -108,6 +109,7 @@ func (u *User) RealPathToVirtualPath(rpath string) (string, error) {
 		allowSpecialCasePassThrough := false
 		for _, fsh := range userFsHandlers {
 			thisVrootPath := fsh.Path
+			log.Println(filepath.ToSlash(realPath[:len(thisVrootPath)]), thisVrootPath)
 			if len(realPath) > len(thisVrootPath) && filepath.ToSlash(realPath[:len(thisVrootPath)]) == filepath.ToSlash(thisVrootPath) {
 				allowSpecialCasePassThrough = true
 			}