From d62935aa4155da2f74e888e5f51a7f02f14db0cc Mon Sep 17 00:00:00 2001 From: Jens Schauder Date: Mon, 16 Jun 2025 08:46:36 +0200 Subject: [PATCH] Fix Typo in error message. Closes #2073 --- .../org/springframework/data/relational/domain/SqlSort.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-data-relational/src/main/java/org/springframework/data/relational/domain/SqlSort.java b/spring-data-relational/src/main/java/org/springframework/data/relational/domain/SqlSort.java index 2ee60cfcd..ccc950923 100644 --- a/spring-data-relational/src/main/java/org/springframework/data/relational/domain/SqlSort.java +++ b/spring-data-relational/src/main/java/org/springframework/data/relational/domain/SqlSort.java @@ -84,7 +84,7 @@ public class SqlSort extends Sort { if (!predicate.test(property)) { throw new IllegalArgumentException( - "order fields that are not marked as unsafe must only consist of digits, letter, '.', '_', and '\'. If you want to sort by arbitrary expressions please use RelationalSort.unsafe. Note that such expressions become part of SQL statements and therefore need to be sanatized to prevent SQL injection attacks."); + "order fields that are not marked as unsafe must only consist of digits, letter, '.', '_', and '\'. If you want to sort by arbitrary expressions please use RelationalSort.unsafe. Note that such expressions become part of SQL statements and therefore need to be sanitized to prevent SQL injection attacks."); } }