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

(cherry picked from commit fb35d7af59)
This commit is contained in:
SBence 2021-08-23 19:57:32 +02:00 committed by GitHub
parent 1ce5f50d89
commit 5a13e0a45c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}