From 84c87dd15f6e858e5117f8c7c3bd319db695478f Mon Sep 17 00:00:00 2001 From: lemu-rien Date: Thu, 9 Oct 2025 03:32:01 +0200 Subject: [PATCH] fix (#878): enforce path in share links - #889 --- server/ctrl/share.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/ctrl/share.go b/server/ctrl/share.go index 64c5b367..41e80310 100644 --- a/server/ctrl/share.go +++ b/server/ctrl/share.go @@ -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