diff --git a/AsbCloudInfrastructure/Services/ReportService.cs b/AsbCloudInfrastructure/Services/ReportService.cs index daf65c0c..2c998fe8 100644 --- a/AsbCloudInfrastructure/Services/ReportService.cs +++ b/AsbCloudInfrastructure/Services/ReportService.cs @@ -44,7 +44,7 @@ namespace AsbCloudInfrastructure.Services var newReportName = generator.Make(); if(newReportName is not null) { - var shorReportName = newReportName.Split(Path.DirectorySeparatorChar).Last(); + var shorReportName = Path.GetFileName(newReportName); reportNameHandler.Invoke(shorReportName, id); var newReportProperties = new Report