mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
add a definition of user
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user