Browse Source

Fix Typo in error message.

Closes #2073
pull/2069/merge
Jens Schauder 6 months ago
parent
commit
897e54ac9d
No known key found for this signature in database
GPG Key ID: 2BE5D185CD2A1CE6
  1. 2
      spring-data-relational/src/main/java/org/springframework/data/relational/domain/SqlSort.java

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

@ -84,7 +84,7 @@ public class SqlSort extends Sort { @@ -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.");
}
}

Loading…
Cancel
Save