Skip to content

Should escaping the share root be allowed? #82

Description

@redbeam

Most functions in dir.go use the path function to get the path to the directory entry that is to be worked on.

fi, err := os.Stat(d.path(p))

d is used as the base directory, with p joined to it using path -- the question is, should escaping this base directory be allowed?

The same goes for

os.Rename(p, filepath.Join(base, filepath.FromSlash(name)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions