Skip to content

Commit

Permalink
Make sure html files have a safe filename
Browse files Browse the repository at this point in the history
  • Loading branch information
loc0 committed Jun 17, 2019
1 parent 84022dc commit 7997e59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private async Task DownloadLecture(Lecture lecture, string sectionPath)

foreach (HtmlFile lectureTextArea in lecture.HtmlFiles)
{
lectureTextArea.FileName = AddIndex(lectureTextArea.FileName, _currentItemIndex);
lectureTextArea.FileName = AddIndex(lectureTextArea.FileName.GetSafeFilename(), _currentItemIndex);

string filePath = Path.Combine(sectionPath, lectureTextArea.FileName);

Expand Down

0 comments on commit 7997e59

Please sign in to comment.