Skip to content

Commit 58b8a52

Browse files
Potential fix for code scanning alert no. 186: SQL query built from user-controlled sources (#679)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 092387f commit 58b8a52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vr/assets/web/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def all_cicd_pipelines(app_id):
407407
assets = schema.dump(
408408
filter(lambda t: t.ID != '', assets_all)
409409
)
410-
app = BusinessApplications.query.filter(text(f'ID={app_id}')).first()
410+
app = BusinessApplications.query.filter(text("ID=:app_id").params(app_id=app_id)).first()
411411
app_data = {'ID': app_id, 'ApplicationName': app.ApplicationName, 'Component': app.ApplicationAcronym}
412412
NAV['appbar'] = 'settings'
413413
return render_template('assets/all_cicd_pipelines.html', entities=assets, user=user,

0 commit comments

Comments
 (0)