We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57e54e2 commit 96d341eCopy full SHA for 96d341e
shared/src/commonMain/kotlin/uk/co/sentinelweb/cuer/app/usecase/GetFolderListUseCase.kt
@@ -36,6 +36,7 @@ class GetFolderListUseCase(
36
} else {
37
folderPath
38
.let { fullTruncatedPathMapper.truncatedToFullFolderPath(it) }
39
+ ?.takeIf { it.indexOf(folderPath) > 0 } // enforces path beginning with a root on input
40
?.takeIf { fullTruncatedPathMapper.checkFolderPathIsInAllowedSet(it) }
41
?.let { AFile(it) }
42
?.takeIf { fileOperations.exists(it) }
0 commit comments