🐛 fix windows check parent password

This commit is contained in:
微凉
2021-11-29 21:09:16 +08:00
parent ffdd88ec66
commit 71b1517de7
5 changed files with 13 additions and 9 deletions

View File

@ -97,7 +97,7 @@ func GetPW(path string) string {
if path == "/" || path == "\\" {
return ""
}
return GetPW(filepath.Dir(path))
return GetPW(utils.Dir(path))
}
}
@ -119,7 +119,7 @@ func (fs *FileSystem) Link(r *http.Request, rawPath string) (string, error) {
if driver.Config().OnlyProxy || account.WebdavProxy {
link = fmt.Sprintf("%s://%s/p%s", protocol, r.Host, rawPath)
if conf.CheckDown {
pw := GetPW(filepath.Dir(rawPath))
pw := GetPW(utils.Dir(rawPath))
link += "?pw" + pw
}
} else {