mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-07-17 16:36:49 +00:00
fix: recursive check
This commit is contained in:
parent
67ed670d92
commit
3406d3d7f9
6 changed files with 94 additions and 13 deletions
|
|
@ -475,10 +475,6 @@ func (i *FileInfo) readListing(checker rules.Checker, readHeader bool, calcImgRe
|
|||
isSymlink, isInvalidLink := false, false
|
||||
if IsSymlink(f.Mode()) {
|
||||
isSymlink = true
|
||||
// A symlink whose on-disk target escapes the scoped root must not be
|
||||
// followed, otherwise the listing would leak the target's metadata
|
||||
// (and downstream access) for files outside the user's scope or the
|
||||
// shared subtree.
|
||||
if ok, scopeErr := WithinScope(i.Fs, fPath); scopeErr != nil || !ok {
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue