Skip to content

Commit

Permalink
Merge pull request #131 from HebaruSan/fix/sanitize-vessel-filenames
Browse files Browse the repository at this point in the history
Sanitize vessel filenames
  • Loading branch information
dkavolis authored Jan 17, 2022
2 parents f41be9e + 898db14 commit 2b7fb26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2b7fb26

Please sign in to comment.