security log

This commit is contained in:
Daniel Balk
2023-04-03 20:06:06 +02:00
parent e80af275f7
commit c7a31d6e05
6 changed files with 70 additions and 13 deletions

View File

@@ -21,7 +21,10 @@ public class ResourcesController : Controller
{
if (name.Contains(".."))
{
await SecurityLogService.Log(SecurityLogType.PathTransversal, name);
await SecurityLogService.Log(SecurityLogType.PathTransversal, x =>
{
x.Add<string>(name);
});
return NotFound();
}