escape unallowed chars before opening/saving file with lyrics
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user