diff --git a/src/lyrics.cpp b/src/lyrics.cpp index cd159dda..67be5644 100644 --- a/src/lyrics.cpp +++ b/src/lyrics.cpp @@ -309,7 +309,9 @@ void *GetLyrics(void *song) locale_to_utf(artist); locale_to_utf(title); - const string fullpath = lyrics_folder + "/" + artist + " - " + title + ".txt"; + string filename = artist + " - " + title + ".txt"; + EscapeUnallowedChars(filename); + const string fullpath = lyrics_folder + "/" + filename; mkdir(lyrics_folder.c_str(), 0755);