[FL-2682] Allow spaces in file names #1444

This commit is contained in:
Georgii Surkov 2022-07-25 14:23:47 +03:00 committed by GitHub
parent 7c49f604f9
commit c22d66590e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ bool path_contains_only_ascii(const char* path) {
} else if((*name_pos >= 'a') && (*name_pos <= 'z')) {
name_pos++;
continue;
} else if(strchr(".!#\\$%&'()-@^_`{}~", *name_pos) != NULL) {
} else if(strchr(" .!#\\$%&'()-@^_`{}~", *name_pos) != NULL) {
name_pos++;
continue;
}