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

This commit is contained in:
SBence 2021-07-08 03:58:53 +02:00 committed by GitHub
parent c254aa6fcc
commit fb35d7af59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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