FINERACT-1892: Paging fix
This commit is contained in:
committed by
Aleksandar Vidakovic
parent
8135846093
commit
34e8b046a2
+4
@@ -19,6 +19,7 @@
|
|||||||
package org.apache.fineract.infrastructure.core.data;
|
package org.apache.fineract.infrastructure.core.data;
|
||||||
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.apache.fineract.infrastructure.security.utils.SQLInjectionValidator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
@@ -44,6 +45,9 @@ public final class PaginationParameters {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private PaginationParameters(boolean paged, Integer offset, Integer limit, String orderBy, String sortOrder) {
|
private PaginationParameters(boolean paged, Integer offset, Integer limit, String orderBy, String sortOrder) {
|
||||||
|
SQLInjectionValidator.validateSQLInput(orderBy);
|
||||||
|
SQLInjectionValidator.validateSQLInput(sortOrder);
|
||||||
|
|
||||||
this.paged = paged;
|
this.paged = paged;
|
||||||
this.offset = offset;
|
this.offset = offset;
|
||||||
this.limit = limit;
|
this.limit = limit;
|
||||||
|
|||||||
Reference in New Issue
Block a user