diff --git a/FerramAerospaceResearch/FARGUI/FARFlightGUI/FlightDataLogger.cs b/FerramAerospaceResearch/FARGUI/FARFlightGUI/FlightDataLogger.cs index 0133bf8f6..fa1914cd9 100644 --- a/FerramAerospaceResearch/FARGUI/FARFlightGUI/FlightDataLogger.cs +++ b/FerramAerospaceResearch/FARGUI/FARFlightGUI/FlightDataLogger.cs @@ -251,7 +251,7 @@ private string GetFilename() replacements[VesselNameKey] = Localizer.Format(Vessel.vesselName); replacements[DatetimeKey] = DateTime.Now.ToString(FARConfig.FlightLog.DatetimeFormat); string filename = Path.Combine(FARConfig.FlightLog.Directory, - FARConfig.FlightLog.NameFormat.ToString(replacements)); + KSPUtil.SanitizeFilename(FARConfig.FlightLog.NameFormat.ToString(replacements))); return filename; }