From 5a13e0a45cfbf376ca5bb2335ecf32afbc00b1aa Mon Sep 17 00:00:00 2001 From: SBence <43538202+SBence@users.noreply.github.com> Date: Mon, 23 Aug 2021 19:57:32 +0200 Subject: [PATCH] Sanitize manga title in page download subfolder name (#5514) (#975) (cherry picked from commit fb35d7af59d3f5ed89506b5ac70c07669b00ef44) --- .../main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt index 66ed756f52..f5815c2917 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt @@ -726,7 +726,7 @@ class ReaderPresenter( File.separator + Environment.DIRECTORY_PICTURES + File.separator + context.getString(R.string.app_name) val destDir = if (preferences.folderPerManga()) { - File(baseDir + File.separator + manga.title) + File(baseDir + File.separator + DiskUtil.buildValidFilename(manga.title)) } else { File(baseDir) }