mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-12-01 02:17:50 +01:00
Better checking for api sort param to prevent sql injection
And moved filters out and cached object reflection
This commit is contained in:
12 files changed
+312
-223
No files matched your search
@@ -26,7 +26,7 @@ type ListResponse struct {
|
||||
func ListQueryBuilder(
|
||||
pageInfo *model.PageInfo,
|
||||
filters []model.Filter,
|
||||
filterMap map[string]filterMapValue,
|
||||
filterMap map[string]model.FilterMapValue,
|
||||
) *gorm.DB {
|
||||
scopes := make([]func(*gorm.DB) *gorm.DB, 0)
|
||||
scopes = append(scopes, ScopeOffsetLimit(pageInfo))
|
||||
|
||||
Reference in new issue
Block a user