mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-22 21:04:07 +08:00
🔒 not allowed down with relative path
This commit is contained in:
parent
b31a12a0cc
commit
7390e19a7a
@ -118,6 +118,10 @@ func (driver Native) Files(path string, account *model.Account) ([]model.File, e
|
||||
}
|
||||
|
||||
func (driver Native) Link(args base.Args, account *model.Account) (*base.Link, error) {
|
||||
_, err := driver.File(args.Path, account)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
fullPath := filepath.Join(account.RootFolder, args.Path)
|
||||
s, err := os.Stat(fullPath)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user