presidentbeef/brakeman

View on GitHub
docs/warning_types/link_to/index.markdown

Summary

Maintainability
Test Coverage
In the 2.x versions of Rails, `link_to` would not escape the body of the HREF.

For example, this will popup an alert box:

    link_to "<script>alert(1)</script>", "http://google.com"

Brakeman warns on cases where the first parameter contains user input.