Skip to content

Commit 8cede8d

Browse files
committed
FINERACT-1868: Paging fix for 1.8.x
1 parent 22e0854 commit 8cede8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/data/PaginationParameters.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
package org.apache.fineract.infrastructure.core.data;
2020

2121
import org.apache.commons.lang3.StringUtils;
22+
import org.apache.fineract.infrastructure.security.utils.SQLInjectionValidator;
2223

2324
/**
2425
* <p>
@@ -44,6 +45,9 @@ public static PaginationParameters instance(Boolean paged, Integer offset, Integ
4445
}
4546

4647
private PaginationParameters(boolean paged, Integer offset, Integer limit, String orderBy, String sortOrder) {
48+
SQLInjectionValidator.validateSQLInput(orderBy);
49+
SQLInjectionValidator.validateSQLInput(sortOrder);
50+
4751
this.paged = paged;
4852
this.offset = offset;
4953
this.limit = limit;

0 commit comments

Comments
 (0)