diff --git a/Controllers/ResponseEnricher.cs b/Controllers/ResponseEnricher.cs index 0ba829a..29e1f8b 100644 --- a/Controllers/ResponseEnricher.cs +++ b/Controllers/ResponseEnricher.cs @@ -64,6 +64,8 @@ public static class Responses //limit the name to 31 characters sheetName = name.Length > 31 ? name.Substring(0, 31) : name; } + //make sure sheet is only alphanumeric + sheetName = new string(sheetName.Where(char.IsLetterOrDigit).ToArray()); var notebook = new XLWorkbook(); var sheet = notebook.Worksheets.Add(sheetName);