From 4954a1744b31ae8498f966525c5f15f1b4aad8be Mon Sep 17 00:00:00 2001 From: CalDescent Date: Fri, 21 Apr 2023 17:47:29 +0100 Subject: [PATCH] Fixed case sensitivity bugs. --- .../qortal/repository/hsqldb/HSQLDBArbitraryRepository.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/qortal/repository/hsqldb/HSQLDBArbitraryRepository.java b/src/main/java/org/qortal/repository/hsqldb/HSQLDBArbitraryRepository.java index 6ee1cad1..87841ca9 100644 --- a/src/main/java/org/qortal/repository/hsqldb/HSQLDBArbitraryRepository.java +++ b/src/main/java/org/qortal/repository/hsqldb/HSQLDBArbitraryRepository.java @@ -453,7 +453,7 @@ public class HSQLDBArbitraryRepository implements ArbitraryRepository { // Handle name exact matches if (exactMatchNames != null && !exactMatchNames.isEmpty()) { sql.append(" AND LCASE(name) IN (?"); - bindParams.add(exactMatchNames.get(0)); + bindParams.add(exactMatchNames.get(0).toLowerCase()); for (int i = 1; i < exactMatchNames.size(); ++i) { sql.append(", ?"); @@ -467,7 +467,7 @@ public class HSQLDBArbitraryRepository implements ArbitraryRepository { List followedNames = ListUtils.followedNames(); if (followedNames != null && !followedNames.isEmpty()) { sql.append(" AND LCASE(name) IN (?"); - bindParams.add(followedNames.get(0)); + bindParams.add(followedNames.get(0).toLowerCase()); for (int i = 1; i < followedNames.size(); ++i) { sql.append(", ?"); @@ -482,7 +482,7 @@ public class HSQLDBArbitraryRepository implements ArbitraryRepository { List blockedNames = ListUtils.blockedNames(); if (blockedNames != null && !blockedNames.isEmpty()) { sql.append(" AND LCASE(name) NOT IN (?"); - bindParams.add(blockedNames.get(0)); + bindParams.add(blockedNames.get(0).toLowerCase()); for (int i = 1; i < blockedNames.size(); ++i) { sql.append(", ?");