mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-21 17:01:04 +01:00
Fix code scanning alert no. 8: Database query built from user-controlled sources
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
8f25e35b89
commit
172a7536e7
@ -498,7 +498,7 @@ func (d *SqlDb) getObjectsByReferrer(referrerID int, referringObjectProps db.Obj
|
||||
}
|
||||
|
||||
if orderColumn != "" {
|
||||
q = q.OrderBy("pe." + orderColumn + " " + orderDirection)
|
||||
q = q.OrderBy(squirrel.Expr("pe." + orderColumn + " " + orderDirection))
|
||||
}
|
||||
|
||||
query, args, err := q.ToSql()
|
||||
|
Loading…
Reference in New Issue
Block a user