You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

102 lines
4.9 KiB

  1. {
  2. "ignored_warnings": [
  3. {
  4. "warning_type": "Dynamic Render Path",
  5. "warning_code": 15,
  6. "fingerprint": "44d3f14e05d8fbb5b23e13ac02f15aa38b2a2f0f03b9ba76bab7f98e155a4a4e",
  7. "check_name": "Render",
  8. "message": "Render path contains parameter value",
  9. "file": "app/views/stream_entries/embed.html.haml",
  10. "line": 3,
  11. "link": "http://brakemanscanner.org/docs/warning_types/dynamic_render_path/",
  12. "code": "render(action => \"stream_entries/#{Account.find_local!(params[:account_username]).statuses.find(params[:id]).stream_entry.activity_type.downcase}\", { Account.find_local!(params[:account_username]).statuses.find(params[:id]).stream_entry.activity_type.downcase.to_sym => Account.find_local!(params[:account_username]).statuses.find(params[:id]).stream_entry.activity, :centered => true })",
  13. "render_path": [{"type":"controller","class":"StatusesController","method":"embed","line":35,"file":"app/controllers/statuses_controller.rb"}],
  14. "location": {
  15. "type": "template",
  16. "template": "stream_entries/embed"
  17. },
  18. "user_input": "params[:id]",
  19. "confidence": "Weak",
  20. "note": ""
  21. },
  22. {
  23. "warning_type": "Dynamic Render Path",
  24. "warning_code": 15,
  25. "fingerprint": "9f31d941f3910dba2e9bfcd81aef4513249bd24c02d0f98e13ad44fdeeccd0e8",
  26. "check_name": "Render",
  27. "message": "Render path contains parameter value",
  28. "file": "app/views/admin/accounts/index.html.haml",
  29. "line": 63,
  30. "link": "http://brakemanscanner.org/docs/warning_types/dynamic_render_path/",
  31. "code": "render(action => filtered_accounts.page(params[:page]), {})",
  32. "render_path": [{"type":"controller","class":"Admin::AccountsController","method":"index","line":10,"file":"app/controllers/admin/accounts_controller.rb"}],
  33. "location": {
  34. "type": "template",
  35. "template": "admin/accounts/index"
  36. },
  37. "user_input": "params[:page]",
  38. "confidence": "Weak",
  39. "note": ""
  40. },
  41. {
  42. "warning_type": "Redirect",
  43. "warning_code": 18,
  44. "fingerprint": "bb7e94e60af41decb811bb32171f1b27e9bf3f4d01e9e511127362e22510eb11",
  45. "check_name": "Redirect",
  46. "message": "Possible unprotected redirect",
  47. "file": "app/controllers/remote_follow_controller.rb",
  48. "line": 18,
  49. "link": "http://brakemanscanner.org/docs/warning_types/redirect/",
  50. "code": "redirect_to(RemoteFollow.new(resource_params).subscribe_address_for(Account.find_local!(params[:account_username])))",
  51. "render_path": null,
  52. "location": {
  53. "type": "method",
  54. "class": "RemoteFollowController",
  55. "method": "create"
  56. },
  57. "user_input": "RemoteFollow.new(resource_params).subscribe_address_for(Account.find_local!(params[:account_username]))",
  58. "confidence": "High",
  59. "note": ""
  60. },
  61. {
  62. "warning_type": "Dynamic Render Path",
  63. "warning_code": 15,
  64. "fingerprint": "c5d6945d63264af106d49367228d206aa2f176699ecdce2b98fac101bc6a96cf",
  65. "check_name": "Render",
  66. "message": "Render path contains parameter value",
  67. "file": "app/views/admin/reports/index.html.haml",
  68. "line": 24,
  69. "link": "http://brakemanscanner.org/docs/warning_types/dynamic_render_path/",
  70. "code": "render(action => filtered_reports.page(params[:page]), {})",
  71. "render_path": [{"type":"controller","class":"Admin::ReportsController","method":"index","line":9,"file":"app/controllers/admin/reports_controller.rb"}],
  72. "location": {
  73. "type": "template",
  74. "template": "admin/reports/index"
  75. },
  76. "user_input": "params[:page]",
  77. "confidence": "Weak",
  78. "note": ""
  79. },
  80. {
  81. "warning_type": "Dynamic Render Path",
  82. "warning_code": 15,
  83. "fingerprint": "fbd0fc59adb5c6d44b60e02debb31d3af11719f534c9881e21435bbff87404d6",
  84. "check_name": "Render",
  85. "message": "Render path contains parameter value",
  86. "file": "app/views/stream_entries/show.html.haml",
  87. "line": 23,
  88. "link": "http://brakemanscanner.org/docs/warning_types/dynamic_render_path/",
  89. "code": "render(partial => \"stream_entries/#{Account.find_local!(params[:account_username]).statuses.find(params[:id]).stream_entry.activity_type.downcase}\", { :locals => ({ Account.find_local!(params[:account_username]).statuses.find(params[:id]).stream_entry.activity_type.downcase.to_sym => Account.find_local!(params[:account_username]).statuses.find(params[:id]).stream_entry.activity, :include_threads => true }) })",
  90. "render_path": [{"type":"controller","class":"StatusesController","method":"show","line":20,"file":"app/controllers/statuses_controller.rb"}],
  91. "location": {
  92. "type": "template",
  93. "template": "stream_entries/show"
  94. },
  95. "user_input": "params[:id]",
  96. "confidence": "Weak",
  97. "note": ""
  98. }
  99. ],
  100. "updated": "2017-08-30 05:14:04 +0200",
  101. "brakeman_version": "3.7.2"
  102. }