Explorar o código

Fixing potential linux issue for smbfs

Toby Chui %!s(int64=3) %!d(string=hai) anos
pai
achega
2c28cd0a1d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      mod/filesystem/abstractions/smbfs/smbfs.go

+ 1 - 0
mod/filesystem/abstractions/smbfs/smbfs.go

@@ -174,6 +174,7 @@ func (a ServerMessageBlockFileSystemAbstraction) VirtualPathToRealPath(subpath s
 }
 
 func (a ServerMessageBlockFileSystemAbstraction) RealPathToVirtualPath(fullpath string, username string) (string, error) {
+	fullpath = filterFilepath(fullpath)
 	fullpath = strings.TrimPrefix(fullpath, "\\")
 	vpath := a.UUID + ":/" + filterFilepath(fullpath)
 	return vpath, nil