mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-01 11:16:47 +01:00
Merge pull request #1211 from mfietz/issue/1203-disallowed-filename
Allow only alphanumeric and a few other characters in media filenames
This commit is contained in:
commit
7a69147a9e
@ -351,7 +351,7 @@ public class DownloadRequester {
|
||||
if (media.getItem() != null && media.getItem().getTitle() != null) {
|
||||
String title = media.getItem().getTitle();
|
||||
// Delete reserved characters
|
||||
titleBaseFilename = title.replaceAll("[\\\\/%\\?\\*:|<>\"\\p{Cntrl}]", "");
|
||||
titleBaseFilename = title.replaceAll("[^a-zA-Z0-9 ._()-]", "");
|
||||
titleBaseFilename = titleBaseFilename.trim();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user