fix (#878): enforce path in share links - #889

This commit is contained in:
lemu-rien 2025-10-09 03:32:01 +02:00 committed by GitHub
parent 5a4571fb0e
commit 84c87dd15f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,7 @@ func ShareUpsert(ctx *App, res http.ResponseWriter, req *http.Request) {
leftPath = ctx.Share.Path
} else {
if ctx.Session["path"] != "" {
leftPath = ctx.Session["path"]
leftPath = EnforceDirectory(ctx.Session["path"])
}
}
return leftPath + rightPath