mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Ignore brakeman warning about link to href value
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
"check_name": "SQL",
|
||||
"message": "Possible SQL injection",
|
||||
"file": "app/models/concerns/heartbeatable.rb",
|
||||
"line": 173,
|
||||
"line": 175,
|
||||
"link": "https://brakemanscanner.org/docs/warning_types/sql_injection/",
|
||||
"code": "Arel.sql(\"DATE_TRUNC('day', to_timestamp(time) AT TIME ZONE '#{(user_timezone or \"UTC\")}')\")",
|
||||
"render_path": null,
|
||||
@@ -23,6 +23,40 @@
|
||||
],
|
||||
"note": ""
|
||||
},
|
||||
{
|
||||
"warning_type": "Cross-Site Scripting",
|
||||
"warning_code": 4,
|
||||
"fingerprint": "8184712392e74f5ce3734b80dcfd36172e118373aa4d12bb8756004866bd72c9",
|
||||
"check_name": "LinkToHref",
|
||||
"message": "Potentially unsafe model attribute in `link_to` href",
|
||||
"file": "app/views/admin/ysws_reviews/show.html.erb",
|
||||
"line": 65,
|
||||
"link": "https://brakemanscanner.org/docs/warning_types/link_to_href",
|
||||
"code": "link_to(\"View on Airtable\", (Unresolved Model).new.airtable_url, :target => \"_blank\", :style => \"display: inline-block; padding: 0.4rem 0.8rem; background-color: #374151; color: #E5E7EB; text-decoration: none; border-radius: 0.25rem; font-size: 0.85rem;\")",
|
||||
"render_path": [
|
||||
{
|
||||
"type": "controller",
|
||||
"class": "Admin::YswsReviewsController",
|
||||
"method": "show",
|
||||
"line": 7,
|
||||
"file": "app/controllers/admin/ysws_reviews_controller.rb",
|
||||
"rendered": {
|
||||
"name": "admin/ysws_reviews/show",
|
||||
"file": "app/views/admin/ysws_reviews/show.html.erb"
|
||||
}
|
||||
}
|
||||
],
|
||||
"location": {
|
||||
"type": "template",
|
||||
"template": "admin/ysws_reviews/show"
|
||||
},
|
||||
"user_input": "(Unresolved Model).new.airtable_url",
|
||||
"confidence": "Weak",
|
||||
"cwe_id": [
|
||||
79
|
||||
],
|
||||
"note": ""
|
||||
},
|
||||
{
|
||||
"warning_type": "SQL Injection",
|
||||
"warning_code": 0,
|
||||
|
||||
Reference in New Issue
Block a user