From 5ab251d65d3c098a4e1f23bbb0b87f8c0b349b42 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 2ee60cfc..ccc95092 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."); } }