Commit cf0904ee authored by Rémi Duraffort's avatar Rémi Duraffort

playlist_art: blacklist some forbidden char for windows.

parent 086a3600
......@@ -75,6 +75,11 @@ static char *ArtCacheGetSanitizedFileName( const char *psz )
{
if( dup[i] == DIR_SEP_CHAR )
dup[i] = ' ';
// "<>:\"/?*" are forbidden for win filenames
#if defined( WIN32 ) || defined( UNDER_CE )
else if( strchr( "<>:\"/?*", dup[i] ) )
dup[i] = '_';
#endif
}
return dup;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment