From fa31369f99a1b25d669b7534960192a85fdd1e1f Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 23 Apr 2021 08:43:47 -0400 Subject: [PATCH] Sanitize source download folder name (fixes #4945) --- .../java/eu/kanade/tachiyomi/data/download/DownloadProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadProvider.kt b/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadProvider.kt index 200c1c9655..ffa5da7218 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadProvider.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadProvider.kt @@ -115,7 +115,7 @@ class DownloadProvider(private val context: Context) { * @param source the source to query. */ fun getSourceDirName(source: Source): String { - return source.toString() + return DiskUtil.buildValidFilename(source.toString()) } /**