escape unallowed chars before opening/saving file with lyrics

master
Andrzej Rybczak 17 years ago
parent 6217bf04c2
commit baa1c9bf4f
  1. 4
      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);

Loading…
Cancel
Save