mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-09 21:09:35 +02:00
Sanitize manga title in page download subfolder name (#5514)
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user