From d414c0ae2fd88da5659c68fe273eddf8074c7f13 Mon Sep 17 00:00:00 2001 From: Callum Stott Date: Tue, 20 Aug 2024 08:59:10 +0100 Subject: [PATCH] Add message to PathUtils security exception --- shared/src/main/java/org/odk/collect/shared/PathUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/main/java/org/odk/collect/shared/PathUtils.kt b/shared/src/main/java/org/odk/collect/shared/PathUtils.kt index 6c68afdf929..927796a4ed8 100644 --- a/shared/src/main/java/org/odk/collect/shared/PathUtils.kt +++ b/shared/src/main/java/org/odk/collect/shared/PathUtils.kt @@ -16,7 +16,7 @@ object PathUtils { if (File(absolutePath).canonicalPath.startsWith(dirPath)) { return absolutePath } else { - throw SecurityException() + throw SecurityException("Invalid path: $absolutePath") } }