From e780f8a3f06c7be6615b5112f0c29fe88fb3e166 Mon Sep 17 00:00:00 2001 From: J-Jamet Date: Tue, 19 Nov 2024 21:48:16 +0100 Subject: [PATCH] fix: Matching against domain goes too far #1820 --- .../java/com/kunzisoft/keepass/database/search/SearchHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/src/main/java/com/kunzisoft/keepass/database/search/SearchHelper.kt b/database/src/main/java/com/kunzisoft/keepass/database/search/SearchHelper.kt index 9692010c5..22c56f05a 100644 --- a/database/src/main/java/com/kunzisoft/keepass/database/search/SearchHelper.kt +++ b/database/src/main/java/com/kunzisoft/keepass/database/search/SearchHelper.kt @@ -154,7 +154,7 @@ class SearchHelper { // subdomain.domain.org stringToCheck.endsWith(".$word", !searchParameters.caseSensitive) || // https://domain.org - stringToCheck.endsWith("\\/$word", !searchParameters.caseSensitive) + stringToCheck.endsWith("/$word", !searchParameters.caseSensitive) // Don't allow mydomain.org }) return true