allow spaces in file names

This will be more important as people work with media, since it is quite
common to use spaces in filenames generated by humans.  Media files will
not be built by fdroid, so most likely, they will have human-generated
names.
This commit is contained in:
Hans-Christoph Steiner 2017-07-06 23:29:54 +02:00 committed by Chirayu Desai
parent 06bcf75f9b
commit c5a1b11315

View File

@ -15,7 +15,7 @@ public class SanitizedFile extends File {
* Removes anything that is not an alpha numeric character, or one of "-", ".", or "_".
*/
public static String sanitizeFileName(String name) {
return name.replaceAll("[^A-Za-z0-9-._]", "");
return name.replaceAll("[^A-Za-z0-9-._ ]", "");
}
/**