add a definition of user

This commit is contained in:
erik-krogh
2024-02-06 09:21:35 +01:00
parent 44fe34a37d
commit 4e176236e7

View File

@@ -8,6 +8,7 @@ public class TaintedPathHandler : IHttpHandler
{
string filename = ctx.Request.QueryString["path"];
string user = ctx.User.Identity.Name;
string publicFolder = Path.GetFullPath("/home/" + user + "/public");
string filePath = Path.GetFullPath(Path.Combine(publicFolder, filename));