109 lines
3.4 KiB
Plaintext
109 lines
3.4 KiB
Plaintext
{
|
|
"ignored_warnings": [
|
|
{
|
|
"warning_type": "Dynamic Render Path",
|
|
"warning_code": 15,
|
|
"fingerprint": "42478896b621fa561e9866e0bc1339d9864fea72109e83c02b194967272202cc",
|
|
"check_name": "Render",
|
|
"message": "Render path contains parameter value",
|
|
"file": "app/views/tables/show.html.erb",
|
|
"line": 15,
|
|
"link": "https://brakemanscanner.org/docs/warning_types/dynamic_render_path/",
|
|
"code": "render(action => Current.user.tables.find(params[:id]).characters, {})",
|
|
"render_path": [
|
|
{
|
|
"type": "controller",
|
|
"class": "TablesController",
|
|
"method": "show",
|
|
"line": 13,
|
|
"file": "app/controllers/tables_controller.rb",
|
|
"rendered": {
|
|
"name": "tables/show",
|
|
"file": "app/views/tables/show.html.erb"
|
|
}
|
|
}
|
|
],
|
|
"location": {
|
|
"type": "template",
|
|
"template": "tables/show"
|
|
},
|
|
"user_input": "params[:id]",
|
|
"confidence": "Weak",
|
|
"cwe_id": [
|
|
22
|
|
],
|
|
"note": ""
|
|
},
|
|
{
|
|
"warning_type": "Dynamic Render Path",
|
|
"warning_code": 15,
|
|
"fingerprint": "5e59ccbb20f360876317a1d7721a9b32bfae08b038943124e59179505c3325f8",
|
|
"check_name": "Render",
|
|
"message": "Render path contains parameter value",
|
|
"file": "app/views/character_sheet_sections/index.html.erb",
|
|
"line": 13,
|
|
"link": "https://brakemanscanner.org/docs/warning_types/dynamic_render_path/",
|
|
"code": "render(action => Current.user.characters.find(params[:character_id]).character_sheet_sections.top_level, {})",
|
|
"render_path": [
|
|
{
|
|
"type": "controller",
|
|
"class": "CharacterSheetSectionsController",
|
|
"method": "index",
|
|
"line": 10,
|
|
"file": "app/controllers/character_sheet_sections_controller.rb",
|
|
"rendered": {
|
|
"name": "character_sheet_sections/index",
|
|
"file": "app/views/character_sheet_sections/index.html.erb"
|
|
}
|
|
}
|
|
],
|
|
"location": {
|
|
"type": "template",
|
|
"template": "character_sheet_sections/index"
|
|
},
|
|
"user_input": "params[:character_id]",
|
|
"confidence": "Weak",
|
|
"cwe_id": [
|
|
22
|
|
],
|
|
"note": ""
|
|
},
|
|
{
|
|
"warning_type": "Dynamic Render Path",
|
|
"warning_code": 15,
|
|
"fingerprint": "8cc5f8414893bc6d142fda5a2a91346bfe171640647dc017315ab21724170912",
|
|
"check_name": "Render",
|
|
"message": "Render path contains parameter value",
|
|
"file": "app/views/events/index.html.erb",
|
|
"line": 4,
|
|
"link": "https://brakemanscanner.org/docs/warning_types/dynamic_render_path/",
|
|
"code": "render(action => Current.user.tables.find(params[:table_id]).dice_rolls.order(:created_at), {})",
|
|
"render_path": [
|
|
{
|
|
"type": "controller",
|
|
"class": "EventsController",
|
|
"method": "index",
|
|
"line": 11,
|
|
"file": "app/controllers/events_controller.rb",
|
|
"rendered": {
|
|
"name": "events/index",
|
|
"file": "app/views/events/index.html.erb"
|
|
}
|
|
}
|
|
],
|
|
"location": {
|
|
"type": "template",
|
|
"template": "events/index"
|
|
},
|
|
"user_input": "params[:table_id]",
|
|
"confidence": "Weak",
|
|
"cwe_id": [
|
|
22
|
|
],
|
|
"note": ""
|
|
}
|
|
],
|
|
"updated": "2024-06-13 13:24:46 +0100",
|
|
"brakeman_version": "6.1.2"
|
|
}
|