Browse Source

Sanitize manga title in page download subfolder name (#5514)

SBence 3 years ago
parent
commit
fb35d7af59

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt

@@ -596,7 +596,7 @@ class ReaderPresenter(
         // Pictures directory.
         val baseDir = getPicturesDir(context).absolutePath
         val destDir = if (preferences.folderPerManga()) {
-            File(baseDir + File.separator + manga.title)
+            File(baseDir + File.separator + DiskUtil.buildValidFilename(manga.title))
         } else {
             File(baseDir)
         }