From 765c67629f4c3b650553b2baebdd1b584188c950 Mon Sep 17 00:00:00 2001 From: Andrey Krutov Date: Mon, 9 Dec 2013 01:02:09 +0400 Subject: [PATCH] Add '\n' to the list of illegal characters in filenames. --- src/de/danoeh/antennapod/util/FileNameGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/danoeh/antennapod/util/FileNameGenerator.java b/src/de/danoeh/antennapod/util/FileNameGenerator.java index 702df62b8..2979c76fa 100644 --- a/src/de/danoeh/antennapod/util/FileNameGenerator.java +++ b/src/de/danoeh/antennapod/util/FileNameGenerator.java @@ -6,7 +6,7 @@ import java.util.Arrays; public class FileNameGenerator { private static final char[] ILLEGAL_CHARACTERS = { '/', '\\', '?', '%', - '*', ':', '|', '"', '<', '>' }; + '*', ':', '|', '"', '<', '>', '\n' }; static { Arrays.sort(ILLEGAL_CHARACTERS); }