Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public String getOrderBy() {
}

public PageQuery setOrderBy(String orderBy) {
if (SqlSafeUtil.check(orderBy)) {
throw new PageException("Order by [" + orderBy + "] contains SQL injection risk. If you want to bypass SQL injection validation, use PageQuery.setUnsafeOrderBy");
}
this.orderBy = orderBy;
return this;
}
Expand Down