diff --git a/SS14.MapServer/Controllers/MapController.cs b/SS14.MapServer/Controllers/MapController.cs index 40d4df0..53b6949 100644 --- a/SS14.MapServer/Controllers/MapController.cs +++ b/SS14.MapServer/Controllers/MapController.cs @@ -199,10 +199,7 @@ public async Task DeleteMap(string id, string gitRef) [Consumes("application/json")] public async Task SyncMaps(string? mapFileNames, bool syncAll) { - // Split the string into a list of strings. They're seperated by commas. - if (mapFileNames == null) - mapFileNames = ""; - var mapList = mapFileNames.Split(',').ToList(); + var mapList = mapFileNames?.Split(' ').ToImmutableList() ?? ImmutableList.Empty; var data = new JobDataMap {