Skip to content

Commit d62935a

Browse files
committed
Fix Typo in error message.
Closes #2073
1 parent 42b6996 commit d62935a

File tree

1 file changed

+1
-1
lines changed
  • spring-data-relational/src/main/java/org/springframework/data/relational/domain

1 file changed

+1
-1
lines changed

spring-data-relational/src/main/java/org/springframework/data/relational/domain/SqlSort.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static void validate(Sort.Order order) {
8484

8585
if (!predicate.test(property)) {
8686
throw new IllegalArgumentException(
87-
"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.");
87+
"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.");
8888
}
8989
}
9090

0 commit comments

Comments
 (0)