Filter bad chars in file_rename_unicode() like in file_rename()

This commit is contained in:
Christophe Grenier 2016-02-13 16:08:12 +01:00
parent 22149ba6d8
commit 840234d18b

View file

@ -522,7 +522,12 @@ int file_rename_unicode(file_recovery_t *file_recovery, const void *buffer, cons
case '\\':
case ':':
case '*':
*dst++ = '_';
case '<':
case '>':
case '|':
case '\'':
if(*(dst-1) != '_')
*dst++ = '_';
bad++;
break;
default: