Filter bad chars in file_rename_unicode() like in file_rename()
This commit is contained in:
parent
22149ba6d8
commit
840234d18b
1 changed files with 6 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue