Skip to content

Commit

Permalink
fix brakeman warning
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Feb 6, 2025
1 parent eee3f6a commit eef0e93
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion config/brakeman.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"check_name": "EOLRails",
"message": "Support for Rails 7.0.8.7 ends on 2025-04-01",
"file": "Gemfile.lock",
"line": 368,
"line": 369,
"link": "https://brakemanscanner.org/docs/warning_types/unmaintained_dependency/",
"code": null,
"render_path": null,
Expand All @@ -18,6 +18,29 @@
1104
],
"note": ""
},
{
"warning_type": "SQL Injection",
"warning_code": 0,
"fingerprint": "ba71521067c8bd704595559c1478a1dcc10d03a0693de4f975941c4c6e8132c7",
"check_name": "SQL",
"message": "Possible SQL injection",
"file": "app/controllers/admin/results_controller.rb",
"line": 7,
"link": "https://brakemanscanner.org/docs/warning_types/sql_injection/",
"code": "Arel.sql(\"#{allowed_sort_columns[sort_column]} #{allowed_sort_directions}\")",
"render_path": null,
"location": {
"type": "method",
"class": "Admin::ResultsController",
"method": "index"
},
"user_input": "allowed_sort_columns[sort_column]",
"confidence": "Medium",
"cwe_id": [
89
],
"note": ""
}
],
"brakeman_version": "7.0.0"
Expand Down

0 comments on commit eef0e93

Please sign in to comment.