Skip to content

Commit 4e17623

Browse files
committed
add a definition of user
1 parent 44fe34a commit 4e17623

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

csharp/ql/src/Security Features/CWE-022/examples/TaintedPathGoodFolder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public void ProcessRequest(HttpContext ctx)
88
{
99
string filename = ctx.Request.QueryString["path"];
1010

11+
string user = ctx.User.Identity.Name;
1112
string publicFolder = Path.GetFullPath("/home/" + user + "/public");
1213
string filePath = Path.GetFullPath(Path.Combine(publicFolder, filename));
1314

0 commit comments

Comments
 (0)